feature: added click handler to tray icon to focus/show tidal-hifi. fixes #193 #143

This commit is contained in:
2023-01-22 20:51:38 +01:00
parent 57b7f9148f
commit 0620d87d8b
2 changed files with 6 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ trayModule.addTray = function (mainWindow, options = { icon: "" }) {
const menu = getMenu(mainWindow);
tray.setContextMenu(menu);
tray.on("click", function () {
mainWindow.isVisible() ? mainWindow.focus() : mainWindow.show();
});
};
trayModule.refreshTray = function (mainWindow) {