1
1
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:
Eugene Pankov 2022-04-15 20:04:30 +02:00
parent 3d841eb97c
commit 763bb2c7aa
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -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)
}