Skip to content

Commit

Permalink
[GUI] (Windows) Show application main window on single-click on app t…
Browse files Browse the repository at this point in the history
…ray icon

#314
  • Loading branch information
stenya committed Oct 2, 2023
1 parent 3b1961e commit 6a74db9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ui/src/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,12 @@ function updateTrayMenu() {
// eslint-disable-next-line no-undef
tray = new Tray(iconDisconnected);

tray.on("double-click", () => {
if (menuHandlerShow != null) menuHandlerShow();
});
// Windows: on tray icon click -> show app (macOS/Linux: show menu)
if (Platform() == PlatformEnum.Windows) {
tray.on("click", () => {
if (menuHandlerShow != null) menuHandlerShow();
});
}
}

// FAVORITE SERVERS MENU
Expand Down

0 comments on commit 6a74db9

Please sign in to comment.