Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

fix(desktop): keep the Dock icon when the popover opens (#1153)

Tashfeen4430d42b9e4a
diff --git a/desktop/src/popover.ts b/desktop/src/popover.ts
index 56352829..c951486d 100644
--- a/desktop/src/popover.ts
+++ b/desktop/src/popover.ts
@@ -51,8 +51,16 @@ function createPopover(): BrowserWindow {
},
});
- // Show over fullscreen apps, like every menu bar utility.
- win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true });
+ // Follow the user across Spaces. `visibleOnFullScreen` is what lets the
+ // popover appear over another app's fullscreen Space, but Electron delivers
+ // it by transforming the process into a UI-element app — its own source says
+ // it "functionally mimics app.dock.hide()" — which silently removed the Dock
+ // icon the first time the popover opened. `skipTransformProcessType` keeps
+ // the collection behaviour and leaves the Dock icon to main.ts' showInDock.
+ // The cost: with the icon shown, macOS will not float the popover over
+ // someone else's fullscreen Space (a rule since 10.14). Users who turn the
+ // Dock icon off get that back, exactly as before.
+ win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true, skipTransformProcessType: true });
win.loadFile(path.join(__dirname, '../renderer/popover.html')).then(() => {
if (process.platform !== 'darwin') {