From b1dd6dab331c46e804b72fd716eafecf266719a8 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 3 Nov 2025 22:03:21 +0800 Subject: [PATCH] fix(tray): set default minimize to tray behavior for all platforms Updated the default behavior for minimizing the application to the system tray, ensuring it is set to false across all platforms, including macOS. This change simplifies the tray configuration logic. Signed-off-by: Innei --- apps/desktop/layer/main/src/lib/tray.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/layer/main/src/lib/tray.ts b/apps/desktop/layer/main/src/lib/tray.ts index 475e7c2bb..78e0bf653 100644 --- a/apps/desktop/layer/main/src/lib/tray.ts +++ b/apps/desktop/layer/main/src/lib/tray.ts @@ -113,7 +113,7 @@ const destroyAppTray = () => { } } -const DEFAULT_MINIMIZE_TO_TRAY = isMacOS ? false : true +const DEFAULT_MINIMIZE_TO_TRAY = false export const getTrayConfig = () => store.get("minimizeToTray") ?? DEFAULT_MINIMIZE_TO_TRAY