diff --git a/app/lib/app.ts b/app/lib/app.ts index c8ba4cab..47a30cc9 100644 --- a/app/lib/app.ts +++ b/app/lib/app.ts @@ -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) }