Skip to content

Commit

Permalink
fix: don't exit if dashboard is closed without quitting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Feb 26, 2021
1 parent f61b2c2 commit 62abe48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/app-electron/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,19 @@ async function main(args, isProduction) {
// app.on('ready', createWindow);
app.on('ready', createTray);

// Quit when all windows are closed, except on macOS. There, it's common
// for applications and their menu bar to stay active until the user quits
// Quit when all windows are closed, except on macOS. There, it's common for
// applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
//
// NOTE(michaelfig): We don't do this because we want the system tray to stay
// alive on all platforms, unless explicitly quit.
/*
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
*/

app.on('activate', () => {
// On OS X it's common to re-create a window in the app when the
Expand Down

0 comments on commit 62abe48

Please sign in to comment.