Skip to content

Commit 2ade4ae

Browse files
authored
fix(app): throw error popup when close window (#1144)
1 parent 8193cbc commit 2ade4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/main/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function bootstrap() {
123123
app.on("before-quit", () => {
124124
// store window pos when before app quit
125125
const window = getMainWindow()
126-
if (!window) return
126+
if (!window || window.isDestroyed()) return
127127
const bounds = window.getBounds()
128128

129129
store.set(windowStateStoreKey, {

0 commit comments

Comments
 (0)