We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8193cbc commit 2ade4aeCopy full SHA for 2ade4ae
apps/main/src/index.ts
@@ -123,7 +123,7 @@ function bootstrap() {
123
app.on("before-quit", () => {
124
// store window pos when before app quit
125
const window = getMainWindow()
126
- if (!window) return
+ if (!window || window.isDestroyed()) return
127
const bounds = window.getBounds()
128
129
store.set(windowStateStoreKey, {
0 commit comments