fix(desktop): keep minimize on the taskbar and send only close to the tray (#2874)

With tray background mode on, the in-app minimize button hid the window,
so the taskbar entry disappeared while the native title-bar and taskbar
minimize still performed a normal minimize. Minimize now always minimizes;
the setting gates the close path only.

The persisted key stays `desktopMinimizeToTrayEnabled` so existing settings
keep working; the visible label becomes "Close to the system tray" in every
locale.

Closes #2857
This commit is contained in:
Serhii Dziupin
2026-08-13 15:10:48 +03:00
committed by GitHub
parent 6a200e4622
commit 61533ed881
14 changed files with 44 additions and 39 deletions
@@ -976,9 +976,9 @@ export const settingsDict = {
'settings.openchamber.desktopNetwork.field.macMenuBarAria': 'Show OpenChamber in the macOS menu bar',
'settings.openchamber.desktopNetwork.field.macMenuBar': 'Show OpenChamber in the menu bar',
'settings.openchamber.desktopNetwork.field.macMenuBarDescription': 'Requires an app restart. When off, OpenChamber does not create the menu bar item or run its session, approval, and usage updates.',
'settings.openchamber.desktopNetwork.field.minimizeToTrayAria': 'Minimize and close OpenChamber to the system tray',
'settings.openchamber.desktopNetwork.field.minimizeToTray': 'Minimize and close to the system tray',
'settings.openchamber.desktopNetwork.field.minimizeToTrayDescription': 'Keeps OpenChamber running in the system tray when the main window is minimized or closed.',
'settings.openchamber.desktopNetwork.field.minimizeToTrayAria': 'Close OpenChamber to the system tray',
'settings.openchamber.desktopNetwork.field.minimizeToTray': 'Close to the system tray',
'settings.openchamber.desktopNetwork.field.minimizeToTrayDescription': 'Keeps OpenChamber running in the system tray when the main window is closed. Minimizing still leaves the window in the taskbar.',
'settings.openchamber.desktopNetwork.field.keepAwakeAria': 'Keep computer awake while OpenChamber is running',
'settings.openchamber.desktopNetwork.field.keepAwake': 'Keep computer awake while OpenChamber is running',
'settings.openchamber.desktopNetwork.field.keepAwakeDescription': 'Prevents system sleep so phones can keep reaching this app. The screen can still turn off.',