summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop-electron/src
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-03-27 13:32:05 -0400
committerGitHub <[email protected]>2026-03-27 17:32:05 +0000
commitd36b38e4a6f5b778644669ba281fb5a35cf2f028 (patch)
treef22f6b49cb1141aa90388f1fbf5de6a76ad5fb69 /packages/desktop-electron/src
parentbdd7829c689830668ae9a6026f3187196774797c (diff)
downloadopencode-d36b38e4a6f5b778644669ba281fb5a35cf2f028.tar.gz
opencode-d36b38e4a6f5b778644669ba281fb5a35cf2f028.zip
fix(desktop-electron): match dev dock icon inset on macOS (#19429)
Diffstat (limited to 'packages/desktop-electron/src')
-rw-r--r--packages/desktop-electron/src/main/windows.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/desktop-electron/src/main/windows.ts b/packages/desktop-electron/src/main/windows.ts
index 0b7783f28..170cd877c 100644
--- a/packages/desktop-electron/src/main/windows.ts
+++ b/packages/desktop-electron/src/main/windows.ts
@@ -50,7 +50,8 @@ export function setTitlebar(win: BrowserWindow, theme: Partial<TitlebarTheme> =
export function setDockIcon() {
if (process.platform !== "darwin") return
- app.dock?.setIcon(nativeImage.createFromPath(join(iconsDir(), "[email protected]")))
+ const icon = nativeImage.createFromPath(join(iconsDir(), "dock.png"))
+ if (!icon.isEmpty()) app.dock?.setIcon(icon)
}
export function createMainWindow(globals: Globals) {