summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-12-01 15:02:58 +0100
committerOskar Nyberg <oskar@mullvad.net>2020-12-01 15:02:58 +0100
commit2e99d67996ac680ae7a9ee53755d17ab329d2ee9 (patch)
treea76dc478735af137593142ab3594cc08d7638697
parent030dba0070fed0371c13023ba0474beaca810f74 (diff)
parente2542496c4f0b90930055af23e011b3b10839c48 (diff)
downloadmullvadvpn-2e99d67996ac680ae7a9ee53755d17ab329d2ee9.tar.xz
mullvadvpn-2e99d67996ac680ae7a9ee53755d17ab329d2ee9.zip
Merge branch 'hide-dock-icon'
-rw-r--r--gui/src/main/index.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 73a1656782..15e119559a 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -1432,9 +1432,13 @@ class ApplicationMain {
closable: this.guiSettings.unpinnedWindow,
});
- // make the window visible on all workspaces
- if (!this.guiSettings.unpinnedWindow) {
+ // make the window visible on all workspaces and prevent the icon from showing in the dock
+ // and app switcher.
+ if (this.guiSettings.unpinnedWindow) {
+ consumePromise(app.dock.show());
+ } else {
appWindow.setVisibleOnAllWorkspaces(true);
+ app.dock.hide();
}
return appWindow;