Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1157 from mrfelton/fix/app-quit-windows
Browse files Browse the repository at this point in the history
fix(electron): ensure app quit on window close
  • Loading branch information
JimmyMow authored Dec 21, 2018
2 parents fddc443 + 98e1797 commit 1e8134d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ app.on('open-url', (event, protocolUrl) => {
handleOpenUrl(protocolUrl)
})

app.on('window-all-closed', () => {
if (os.platform() !== 'darwin') {
app.quit()
}
})

/**
* Someone tried to run a second instance, we should focus our window.
*/
Expand Down

0 comments on commit 1e8134d

Please sign in to comment.