mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 09:23:44 +08:00
fix: macOS tray icon not changed when use system proxy or tun mode (#2176)
This commit is contained in:
parent
f772f92b88
commit
66941a18c0
@ -184,12 +184,8 @@ impl Tray {
|
|||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
{
|
{
|
||||||
if use_custom_icon {
|
let _ = tray.set_icon(Some(tauri::image::Image::from_bytes(&indication_icon)?));
|
||||||
let _ = tray.set_icon_as_template(false);
|
let _ = tray.set_icon_as_template(!use_custom_icon);
|
||||||
let _ = tray.set_icon(Some(tauri::image::Image::from_bytes(&indication_icon)?));
|
|
||||||
} else {
|
|
||||||
let _ = tray.set_icon_as_template(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
#[cfg(not(target_os = "macos"))]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user