1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 10:46:32 +00:00

store window size on Linux

This commit is contained in:
Whizark
2017-11-19 20:30:05 +09:00
parent 29fa512a90
commit 460437397f

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()
}) })
} }