From dd88742e62495ee3b44fcadc44480c56a2e1033f Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Thu, 27 Aug 2026 10:04:54 +0000 Subject: [PATCH] fix(electron): open Lody on Windows tray left click The Windows tray icon popped up the context menu for both mouse buttons because the `click` handler explicitly called `popUpContextMenu()`. Left click now opens or focuses the main window; `setContextMenu` keeps the menu on right click. Model: claude-opus-5 Co-Authored-By: Claude Opus 5 (1M context) --- apps/electron/src/main/services/windows-tray-service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/electron/src/main/services/windows-tray-service.ts b/apps/electron/src/main/services/windows-tray-service.ts index 26c709a39..12681cbf1 100644 --- a/apps/electron/src/main/services/windows-tray-service.ts +++ b/apps/electron/src/main/services/windows-tray-service.ts @@ -53,8 +53,9 @@ export class WindowsTrayService { this.tray.setToolTip(this.options.productName) this.tray.setContextMenu(contextMenu) + // Left click opens the app directly; the context menu stays on right click. this.tray.on('click', () => { - this.tray?.popUpContextMenu() + this.options.openOrFocusMainWindow() }) return true