Skip to content

Commit

Permalink
CityOfZion#38 avoiding the app to 'freeze' in dock after being closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexintosh committed Aug 10, 2017
1 parent 41943f1 commit 09243e6
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 @@ -4,6 +4,10 @@ const app = electron.app;
const Menu = electron.Menu;
const BrowserWindow = electron.BrowserWindow;

app.on('window-all-closed', () => {
app.quit()
})

app.on('ready', () => {
mainWindow = new BrowserWindow({
height: 750,
Expand Down

0 comments on commit 09243e6

Please sign in to comment.