Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
fixed issue #4 for app closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Helvin committed Mar 13, 2018
1 parent 469b312 commit d93c683
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ app.on('window-all-closed', function () {
}
})

app.on('before-quit', function () {
mainWindow.destroy()
})

app.on('activate', function () {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
Expand Down

0 comments on commit d93c683

Please sign in to comment.