Revert "Changed tray icon behaviour to not show/hide on click (as we have a Show App/Hide App sub-menu)"

This reverts commit 85aaf5946d.
This commit is contained in:
Amelia Frost 2026-03-28 18:16:29 -07:00
parent fbf53123fa
commit f31c2ca067
No known key found for this signature in database

View file

@ -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() {