summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop-electron/src
diff options
context:
space:
mode:
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) {