From 402e5df9acb7c688c42a3913f5d40a9ac90ac8a9 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 30 Dec 2024 22:38:16 -0300 Subject: [PATCH 1/2] feat: double click shows windows --- src/main/services/window-manager.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index 426d7afe..adc2f301 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -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(); } From 726d99a5c7ed075d89215b883cdf708fa8fecf3e Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 30 Dec 2024 23:06:23 -0300 Subject: [PATCH 2/2] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dc11fde4..625b1c9c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hydralauncher", - "version": "3.1.2", + "version": "3.1.3", "description": "Hydra", "main": "./out/main/index.js", "author": "Los Broxas",