Skip to content

Commit

Permalink
chore: restore mainWindow on MacOS (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Falci authored Feb 21, 2023
1 parent c9b4c45 commit 33f7431
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,19 @@ if (isPrimaryInstance) {
}

app.on('window-all-closed', () => {
// Respect the OSX convention of having the application in memory even
// Respect the macOS convention of having the application in memory even
// after all windows have been closed
if (process.platform !== 'darwin') {
app.quit();
}
});

app.on('activate', () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
showMainWindow();
})

let didFireQuitHandlers = false;

function quit(event) {
Expand Down

0 comments on commit 33f7431

Please sign in to comment.