only send args to the most recent window

This commit is contained in:
Eugene Pankov
2020-12-06 17:03:07 +01:00
parent dd3e7a0f89
commit 86b503093c

View File

@@ -139,9 +139,7 @@ export class Application {
handleSecondInstance (argv: string[], cwd: string): void {
this.presentAllWindows()
for (let window of this.windows) {
window.handleSecondInstance(argv, cwd)
}
this.windows[this.windows.length - 1].handleSecondInstance(argv, cwd)
}
private setupMenu () {