mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 05:03:45 +08:00
fix: Tray Icon Tooltip is Empty
This commit is contained in:
parent
e7b04a89e2
commit
f18d0ab923
@ -143,6 +143,14 @@ impl Tray {
|
|||||||
let _ = tray.get_item("system_proxy").set_selected(*system_proxy);
|
let _ = tray.get_item("system_proxy").set_selected(*system_proxy);
|
||||||
let _ = tray.get_item("tun_mode").set_selected(*tun_mode);
|
let _ = tray.get_item("tun_mode").set_selected(*tun_mode);
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "linux"))]
|
||||||
|
let _ = tray.set_tooltip(&format!(
|
||||||
|
"Clash Verge {}\nSystem Proxy: {}\nTun Mode: {}",
|
||||||
|
app_handle.package_info().version,
|
||||||
|
system_proxy,
|
||||||
|
tun_mode
|
||||||
|
));
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user