summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main/window-controller.ts
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-12-28 16:34:37 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-01-03 15:20:23 +0100
commit3e6b2c2a92c07158e22b487654cb5c4aa5fe7dde (patch)
treed129581c22420e15378e07337a386b3e79f601ab /gui/src/main/window-controller.ts
parent08639b4cdb2a55c11d603e25ea87335876fa9951 (diff)
downloadmullvadvpn-3e6b2c2a92c07158e22b487654cb5c4aa5fe7dde.tar.xz
mullvadvpn-3e6b2c2a92c07158e22b487654cb5c4aa5fe7dde.zip
Fix window visibility check
Diffstat (limited to 'gui/src/main/window-controller.ts')
-rw-r--r--gui/src/main/window-controller.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/src/main/window-controller.ts b/gui/src/main/window-controller.ts
index c4d6b47232..09250f4f8c 100644
--- a/gui/src/main/window-controller.ts
+++ b/gui/src/main/window-controller.ts
@@ -179,7 +179,7 @@ export default class WindowController {
}
public isVisible(): boolean {
- return this.window?.isVisible() ?? false;
+ return this.window !== undefined && this.window.isVisible() && !this.window.isMinimized();
}
public updatePosition() {