allow system tray in macOS (#1539)

This commit is contained in:
jeffvli
2026-01-14 18:21:26 -08:00
parent 40f04d6800
commit ae49e3cf2f
+4 -6
View File
@@ -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: () => {