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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user