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