chore: update

This commit is contained in:
huzibaca 2024-10-25 21:25:06 +08:00
parent ba2aa9d6e7
commit 6c2af1bef5
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -87,6 +87,7 @@ impl Tray {
let sysproxy_tray_icon = verge.sysproxy_tray_icon.as_ref().unwrap_or(&false);
let tun_tray_icon = verge.tun_tray_icon.as_ref().unwrap_or(&false);
let tray = app_handle.tray_by_id("main").unwrap();
#[cfg(target_os = "macos")]
let tray_icon = verge.tray_icon.clone().unwrap_or("monochrome".to_string());
let _ = tray.set_menu(Some(create_tray_menu(