Skip to content

Commit

Permalink
Merge pull request #1364 from hydralauncher/feat/adjust-tray-icon-int…
Browse files Browse the repository at this point in the history
…eraction

feat: double click shows windows
  • Loading branch information
zamitto authored Dec 31, 2024
2 parents 0ee55b7 + 726d99a commit ba2ac1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hydralauncher",
"version": "3.1.2",
"version": "3.1.3",
"description": "Hydra",
"main": "./out/main/index.js",
"author": "Los Broxas",
Expand Down
9 changes: 2 additions & 7 deletions src/main/services/window-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,9 @@ export class WindowManager {
if (process.platform !== "darwin") {
await updateSystemTray();

tray.addListener("click", () => {
tray.addListener("double-click", () => {
if (this.mainWindow) {
if (
WindowManager.mainWindow?.isMinimized() ||
!WindowManager.mainWindow?.isVisible()
) {
WindowManager.mainWindow?.show();
}
this.mainWindow.show();
} else {
this.createMainWindow();
}
Expand Down

0 comments on commit ba2ac1e

Please sign in to comment.