summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;