diff --git a/lib/main-window.js b/lib/main-window.js index 9ea868d90..5c0090fc7 100644 --- a/lib/main-window.js +++ b/lib/main-window.js @@ -61,8 +61,12 @@ if (process.platform !== 'linux' || process.env.DESKTOP_SESSION === 'cinnamon') mainWindow.removeAllListeners() }) } else { + mainWindow.on('close', function () { + storeWindowSize() + }) + app.on('window-all-closed', function () { - quitApp() + app.quit() }) }