1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-24 23:23:09 +00:00

Merge pull request #244 from asmsuechan/hotfix-an-error-occurs-on-update

Fix a bug due to event handler of before-quit on update
This commit is contained in:
Sota Sugiura
2017-01-19 00:15:56 +09:00
committed by GitHub

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 {