Skip to content

Commit

Permalink
exit the application when all windows are closed
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlebron committed Jan 18, 2015
1 parent 9ea7b67 commit 1a7dd59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,8 @@ function startApp() {
// This method will be called when atom-shell has done everything
// initialization and ready for creating browser windows.
app.on('ready', startApp);

// Quit the application when all windows are closed.
app.on('window-all-closed', function() {
app.quit();
});

0 comments on commit 1a7dd59

Please sign in to comment.