diff --git a/app/src/main.js b/app/src/main.js index 7b89872..02ed807 100644 --- a/app/src/main.js +++ b/app/src/main.js @@ -38,6 +38,7 @@ app.on('window-all-closed', () => { // determined opts if(appArgs.minimizeToTray){ mainWindow.hide(); + return; } if (!isOSX()) { app.quit(); @@ -79,6 +80,13 @@ app.on('ready', () => { appArgs.minimizeToTray = menuItem.checked = !menuItem.checked; fs.writeFileSync(APP_ARGS_FILE_PATH, JSON.stringify(appArgs)); } + }, + { + label: 'Close', + type: 'normal', + click: function (menuItem) { + app.quit(); + } } ]); appIcon.setContextMenu(menu);