fix error when opening a new instance when one already exists

Fixes "Cannot find module '../dialog'" by returning after checking if an
instance already exists instead of allowing the code to continue and try
to make new instance.
This commit is contained in:
morganamilo 2017-11-28 19:51:29 +00:00
parent 747cb1d5ab
commit 5ad9f6c671
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -41,8 +41,10 @@ let shouldQuitBecauseAppIsAnotherInstance = app.makeSingleInstance(() => {
mainWin.focus();
}
});
if (shouldQuitBecauseAppIsAnotherInstance) {
quitApp();
return;
}
// APP EVENT LISTENERS