From 63ae211af1c45e9eb62661c77630c71b9cc955f3 Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Fri, 1 Aug 2025 20:54:56 +0800 Subject: [PATCH] fix(WindowService): comment out dock icon hiding for macOS when closing to tray due to cmd+h behavior issue (#8658) --- src/main/services/WindowService.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/services/WindowService.ts b/src/main/services/WindowService.ts index 64667cf618..c4a3a3eda9 100644 --- a/src/main/services/WindowService.ts +++ b/src/main/services/WindowService.ts @@ -356,10 +356,13 @@ export class WindowService { mainWindow.hide() - //for mac users, should hide dock icon if close to tray - if (isMac && isTrayOnClose) { - app.dock?.hide() - } + // TODO: don't hide dock icon when close to tray + // will cause the cmd+h behavior not working + // after the electron fix the bug, we can restore this code + // //for mac users, should hide dock icon if close to tray + // if (isMac && isTrayOnClose) { + // app.dock?.hide() + // } }) mainWindow.on('closed', () => {