From f31c2ca067cdea9dd5c825d7eb49593e0e5136fc Mon Sep 17 00:00:00 2001 From: Amelia Frost Date: Sat, 28 Mar 2026 18:16:29 -0700 Subject: [PATCH] Revert "Changed tray icon behaviour to not show/hide on click (as we have a Show App/Hide App sub-menu)" This reverts commit 85aaf5946df805ce19a4df4b2d3120adb1716c19. --- src/native/tray.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/native/tray.ts b/src/native/tray.ts index db3e0fc..cca0fb1 100644 --- a/src/native/tray.ts +++ b/src/native/tray.ts @@ -27,6 +27,14 @@ export function initTray() { updateTrayMenu(); tray.setToolTip("AviaClient for Desktop"); tray.setImage(trayIcon); + tray.on("click", () => { + if (mainWindow.isVisible()) { + mainWindow.hide(); + } else { + mainWindow.show(); + mainWindow.focus(); + } + }); } export function updateTrayMenu() {