summaryrefslogtreecommitdiffhomepage
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
parent08639b4cdb2a55c11d603e25ea87335876fa9951 (diff)
downloadmullvadvpn-3e6b2c2a92c07158e22b487654cb5c4aa5fe7dde.tar.xz
mullvadvpn-3e6b2c2a92c07158e22b487654cb5c4aa5fe7dde.zip
Fix window visibility check
-rw-r--r--CHANGELOG.md1
-rw-r--r--gui/src/main/window-controller.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 44896ce283..cb12cc7807 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -71,6 +71,7 @@ Line wrap the file at 100 chars. Th
- Fix daemon not starting if all excluded app paths reside on non-existent/unmounted volumes.
- Remove tray icon of current running app version when upgrading.
- Allow Mullvad wireguard-nt tunnels to work simultaneously with other wg-nt tunnels.
+- Fix notifications on Windows not showing if window is unpinned and hidden.
#### Android
- Fix Quick Settings tile showing wrong state in certain scenarios.
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() {