fix(app): throw error popup when close window (#1144)

This commit is contained in:
Kevin Cui
2024-10-25 19:49:21 +08:00
committed by GitHub
parent 8193cbcc51
commit 2ade4aed28
+1 -1
View File
@@ -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, {