Skip to content

Commit

Permalink
fix(app): throw error popup when close window (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 authored Oct 25, 2024
1 parent 8193cbc commit 2ade4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 2ade4ae

Please sign in to comment.