diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 2 | ||||
| -rw-r--r-- | gui/src/main/window-controller.ts | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index ded94d405b..8acdac16a0 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1667,7 +1667,7 @@ class ApplicationMain { const window = await this.createWindow(); - this.windowController.destroy(); + this.windowController.close(); this.windowController = new WindowController( window, this.tray, diff --git a/gui/src/main/window-controller.ts b/gui/src/main/window-controller.ts index 4676dbbecb..b737f4da96 100644 --- a/gui/src/main/window-controller.ts +++ b/gui/src/main/window-controller.ts @@ -192,9 +192,11 @@ export default class WindowController { this.notifyUpdateWindowShape(); } - public destroy() { + public close() { if (this.window && !this.window.isDestroyed()) { - this.window.destroy(); + this.window.webContents.closeDevTools(); + this.window.closable = true; + this.window.close(); } } |
