feat: add a macOS menu bar toggle for desktop

Adds a General settings switch to show or hide the macOS menu bar item.
Persists the new desktopMacMenuBarEnabled setting and passes tray state into Electron.
Disables tray sync and native tray setup when the menu bar is turned off.
This commit is contained in:
Bohdan Triapitsyn
2026-07-22 10:08:58 +03:00
parent 1c82198289
commit 1c7cdf68e3
21 changed files with 116 additions and 15 deletions
@@ -185,6 +185,9 @@ export const createSettingsHelpers = (dependencies) => {
if (typeof candidate.desktopMinimizeToTrayEnabled === 'boolean') {
result.desktopMinimizeToTrayEnabled = candidate.desktopMinimizeToTrayEnabled;
}
if (typeof candidate.desktopMacMenuBarEnabled === 'boolean') {
result.desktopMacMenuBarEnabled = candidate.desktopMacMenuBarEnabled;
}
if (typeof candidate.desktopWindowControlsPosition === 'string') {
const mode = candidate.desktopWindowControlsPosition.trim();
if (mode === 'auto' || mode === 'left' || mode === 'right') {