1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-20 09:27:16 +03:00

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
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

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 () {