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 <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-03 22:03:21 +08:00
parent e6f520aa5b
commit b1dd6dab33
+1 -1
View File
@@ -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