don't open second window on app restart when in dock mode (fixes #2449)

This commit is contained in:
Eugene Pankov
2020-05-02 17:23:35 +02:00
parent 5aa3b889f5
commit 0ad585d647
3 changed files with 15 additions and 2 deletions

View File

@@ -34,8 +34,7 @@ process.on('uncaughtException' as any, err => {
})
app.on('second-instance', (_event, argv, cwd) => {
application.presentAllWindows()
application.send('host:second-instance', parseArgs(argv, cwd), cwd)
application.handleSecondInstance(argv, cwd)
})
const argv = parseArgs(process.argv, process.cwd())