From 4199bfb5fdfa99245d6fc92320051628e4bb5e8f Mon Sep 17 00:00:00 2001 From: Andrew Attali Date: Sat, 18 Jul 2026 18:54:27 +0200 Subject: [PATCH] fix(macos): remove tray --- src-tauri/src/desktop/tray.rs | 2 +- src/app/features/settings/desktop/Desktop.tsx | 60 ++++++++++--------- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/src-tauri/src/desktop/tray.rs b/src-tauri/src/desktop/tray.rs index c756f03ca..23c097dfb 100644 --- a/src-tauri/src/desktop/tray.rs +++ b/src-tauri/src/desktop/tray.rs @@ -149,7 +149,7 @@ fn apply_desktop_settings( .show_system_tray_icon .store(settings.show_system_tray_icon, Ordering::Relaxed); - if settings.show_system_tray_icon { + if settings.show_system_tray_icon && cfg!(not(target_os = "macos")) { if app.tray_by_id(MAIN_TRAY_ID).is_none() { match create_system_tray(app) { Ok(()) => state.tray_available.store( diff --git a/src/app/features/settings/desktop/Desktop.tsx b/src/app/features/settings/desktop/Desktop.tsx index a9bcb8f0a..282814b02 100644 --- a/src/app/features/settings/desktop/Desktop.tsx +++ b/src/app/features/settings/desktop/Desktop.tsx @@ -61,35 +61,37 @@ export function Desktop({ requestBack, requestClose }: DesktopProps) { } /> - - - System tray is unavailable on this system. Sable can still keep running in - the background without it. - - ) : ( - 'Show a system tray icon while Sable is running. Disable this if you want Sable to stay available without a tray icon.' - ) - } - after={ - - } - /> - + {type !== 'macos' && ( + + + System tray is unavailable on this system. Sable can still keep running + in the background without it. + + ) : ( + 'Show a system tray icon while Sable is running. Disable this if you want Sable to stay available without a tray icon.' + ) + } + after={ + + } + /> + + )}