diff --git a/apps/main/src/index.ts b/apps/main/src/index.ts index bb95d139b..836a807f3 100644 --- a/apps/main/src/index.ts +++ b/apps/main/src/index.ts @@ -123,7 +123,7 @@ function bootstrap() { app.on("before-quit", () => { // store window pos when before app quit const window = getMainWindow() - if (!window) return + if (!window || window.isDestroyed()) return const bounds = window.getBounds() store.set(windowStateStoreKey, {