From 460437397f18726fb0144617fad89134318ca332 Mon Sep 17 00:00:00 2001 From: Whizark Date: Sun, 19 Nov 2017 20:30:05 +0900 Subject: [PATCH] store window size on Linux --- lib/main-window.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/main-window.js b/lib/main-window.js index 9ea868d9..5c0090fc 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() }) }