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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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, {