1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Fix a bug due to event handler of before-quit on update

This commit is contained in:
asmsuechan
2017-01-16 04:36:23 +09:00
parent 6b98afaa02
commit 6c528625d8

View File

@@ -49,7 +49,12 @@ if (process.platform !== 'linux' || process.env.DESKTOP_SESSION === 'cinnamon')
})
app.on('before-quit', function (e) {
config.set('windowsize', mainWindow.getBounds())
try {
config.set('windowsize', mainWindow.getBounds())
} catch (e) {
// ignore any errors because an error occurs only on update
// refs: https://github.com/BoostIO/Boostnote/issues/243
}
mainWindow.removeAllListeners()
})
} else {