diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-04-20 10:53:07 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-04-20 10:53:07 +0200 |
| commit | 4c93bdcf07af75c8ab3a91ddb0ab2641d277b7c9 (patch) | |
| tree | b0af816c5202d64b54d3f3b91b2da700399c019e /gui/src/main/window-controller.ts | |
| parent | fbdf3932b450ab65940f9f006db05cd35ff10704 (diff) | |
| parent | 87a7d264343b356d1acc746635346021fe7d3c6a (diff) | |
| download | mullvadvpn-4c93bdcf07af75c8ab3a91ddb0ab2641d277b7c9.tar.xz mullvadvpn-4c93bdcf07af75c8ab3a91ddb0ab2641d277b7c9.zip | |
Merge branch 'remember-location'
Diffstat (limited to 'gui/src/main/window-controller.ts')
| -rw-r--r-- | gui/src/main/window-controller.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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(); } } |
