From ae49e3cf2f57fabf9a46d4821168466f1c4385c9 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 14 Jan 2026 18:21:26 -0800 Subject: [PATCH] allow system tray in macOS (#1539) --- src/main/index.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 90e85e736..d3b789e75 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -185,13 +185,11 @@ const createWinThumbarButtons = () => { }; const createTray = () => { - if (isMacOS()) { - return; - } + tray = + isLinux() || isMacOS() + ? new Tray(getAssetPath('icons/icon.png')) + : new Tray(getAssetPath('icons/icon.ico')); - tray = isLinux() - ? new Tray(getAssetPath('icons/icon.png')) - : new Tray(getAssetPath('icons/icon.ico')); const contextMenu = Menu.buildFromTemplate([ { click: () => {