mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
macOS: open a new window if none are open when called from CLI - fixes #6031
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user