fix(app): throw error popup when close window (#1144)
This commit is contained in:
parent
8193cbcc51
commit
2ade4aed28
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue