Skip to content

Commit

Permalink
app.quit will now be called when all windows are closed instead by cl…
Browse files Browse the repository at this point in the history
…osing only the main window. On macOS the app is not supposed to quit
  • Loading branch information
Willy Weise committed Aug 7, 2018
1 parent df82325 commit e035f48
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions electron-webpack-vuejs/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ app.on('ready', () => {
slashes: true
}))
}
window.on('closed', function(){
window = null
app.quit()
window.on("closed", () => {
window = null;
})
})

app.on("window-all-closed", () => {
if (process.platform !== "darwin") {
app.quit();
}
})

0 comments on commit e035f48

Please sign in to comment.