mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 03:00:57 +00:00
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:
parent
747cb1d5ab
commit
5ad9f6c671
1 changed files with 2 additions and 0 deletions
|
|
@ -41,8 +41,10 @@ let shouldQuitBecauseAppIsAnotherInstance = app.makeSingleInstance(() => {
|
|||
mainWin.focus();
|
||||
}
|
||||
});
|
||||
|
||||
if (shouldQuitBecauseAppIsAnotherInstance) {
|
||||
quitApp();
|
||||
return;
|
||||
}
|
||||
|
||||
// APP EVENT LISTENERS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue