Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
@@ -459,7 +459,12 @@ app.on('activate', () => {

app.on('before-quit', () => {
isQuitting = true;
config.set('lastWindowState', mainWindow.getNormalBounds());

// Checking whether the window exists to work around an Electron race issue:
// https://github.com/sindresorhus/caprine/issues/809
if (mainWindow) {
config.set('lastWindowState', mainWindow.getNormalBounds());
}
});

const notifications = new Map();

0 comments on commit 0b955cb

Please sign in to comment.