Quit app when all windows are closed

This commit is contained in:
Jia Hao 2015-07-06 11:46:08 +08:00
parent d7859160eb
commit 619e8c60b9
1 changed files with 4 additions and 0 deletions

View File

@ -57,4 +57,8 @@ ipc.on('notification-message', function(event, arg) {
app.dock.setBadge('●');
}
}
});
app.on('window-all-closed', function() {
app.quit();
});