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:
parent
fbf53123fa
commit
f31c2ca067
1 changed files with 8 additions and 0 deletions
|
|
@ -27,6 +27,14 @@ export function initTray() {
|
||||||
updateTrayMenu();
|
updateTrayMenu();
|
||||||
tray.setToolTip("AviaClient for Desktop");
|
tray.setToolTip("AviaClient for Desktop");
|
||||||
tray.setImage(trayIcon);
|
tray.setImage(trayIcon);
|
||||||
|
tray.on("click", () => {
|
||||||
|
if (mainWindow.isVisible()) {
|
||||||
|
mainWindow.hide();
|
||||||
|
} else {
|
||||||
|
mainWindow.show();
|
||||||
|
mainWindow.focus();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateTrayMenu() {
|
export function updateTrayMenu() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue