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

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