mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-23 05:03:36 +03:00
macOS: open a new window if none are open when called from CLI - fixes #6031
This commit is contained in:
parent
3d841eb97c
commit
763bb2c7aa
@ -219,6 +219,9 @@ export class Application {
|
||||
}
|
||||
|
||||
handleSecondInstance (argv: string[], cwd: string): void {
|
||||
if (!this.windows.length) {
|
||||
await this.newWindow()
|
||||
}
|
||||
this.presentAllWindows()
|
||||
this.windows[this.windows.length - 1].passCliArguments(argv, cwd, true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user