Skip to content

Commit

Permalink
-Guard against unwanted background process if app is closed on Window…
Browse files Browse the repository at this point in the history
…s/Linux without tray enabled
  • Loading branch information
chrisknepper committed Jul 17, 2018
1 parent d596642 commit 6744803
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ if (isSecondInstance) {
event.preventDefault();
mainWindow.hide();
trayManager.showMinimizeToTrayWarning();
} else {
app.quit(); // If we don't explicitly call this, the webview windows gets destroyed but background process still runs.
}
});

Expand Down

0 comments on commit 6744803

Please sign in to comment.