1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #1144 from whizark/store-window-size-on-linux

store correct window size on Linux
This commit is contained in:
Kazz Yokomizo
2017-11-27 11:06:56 +09:00
committed by GitHub

View File

@@ -61,8 +61,12 @@ if (process.platform !== 'linux' || process.env.DESKTOP_SESSION === 'cinnamon')
mainWindow.removeAllListeners() mainWindow.removeAllListeners()
}) })
} else { } else {
mainWindow.on('close', function () {
storeWindowSize()
})
app.on('window-all-closed', function () { app.on('window-all-closed', function () {
quitApp() app.quit()
}) })
} }