diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-12-01 15:02:58 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-12-01 15:02:58 +0100 |
| commit | 2e99d67996ac680ae7a9ee53755d17ab329d2ee9 (patch) | |
| tree | a76dc478735af137593142ab3594cc08d7638697 | |
| parent | 030dba0070fed0371c13023ba0474beaca810f74 (diff) | |
| parent | e2542496c4f0b90930055af23e011b3b10839c48 (diff) | |
| download | mullvadvpn-2e99d67996ac680ae7a9ee53755d17ab329d2ee9.tar.xz mullvadvpn-2e99d67996ac680ae7a9ee53755d17ab329d2ee9.zip | |
Merge branch 'hide-dock-icon'
| -rw-r--r-- | gui/src/main/index.ts | 8 |
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; |
