From 619e8c60b9b0ef90264353636047030ac4bbdd6f Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Mon, 6 Jul 2015 11:46:08 +0800 Subject: [PATCH] Quit app when all windows are closed --- app/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.js b/app/main.js index 2548b19..8a08aef 100644 --- a/app/main.js +++ b/app/main.js @@ -57,4 +57,8 @@ ipc.on('notification-message', function(event, arg) { app.dock.setBadge('●'); } } +}); + +app.on('window-all-closed', function() { + app.quit(); }); \ No newline at end of file