summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main/window-controller.ts
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-04-20 10:53:07 +0200
committerOskar Nyberg <oskar@mullvad.net>2022-04-20 10:53:07 +0200
commit4c93bdcf07af75c8ab3a91ddb0ab2641d277b7c9 (patch)
treeb0af816c5202d64b54d3f3b91b2da700399c019e /gui/src/main/window-controller.ts
parentfbdf3932b450ab65940f9f006db05cd35ff10704 (diff)
parent87a7d264343b356d1acc746635346021fe7d3c6a (diff)
downloadmullvadvpn-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.ts6
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();
}
}