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", 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(); }