mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
Fix a bug due to event handler of before-quit on update
This commit is contained in:
@@ -49,7 +49,12 @@ if (process.platform !== 'linux' || process.env.DESKTOP_SESSION === 'cinnamon')
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.on('before-quit', function (e) {
|
app.on('before-quit', function (e) {
|
||||||
|
try {
|
||||||
config.set('windowsize', mainWindow.getBounds())
|
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()
|
mainWindow.removeAllListeners()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user