fix: fix TUN icon is overwritten by system proxy icon (#1961)

Co-authored-by: 周晓亮 <zhouxl@jiyitech.com>
This commit is contained in:
downer 2024-10-31 09:07:21 +08:00 committed by GitHub
parent 08bf70681c
commit fc03ce1247
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,7 @@ impl Tray {
#[cfg(target_os = "macos")]
let mut use_custom_icon = false;
#[allow(unused)]
let mut indication_icon = if *system_proxy {
let mut indication_icon = if *system_proxy && !*tun_mode {
#[cfg(target_os = "macos")]
let mut icon = match tray_icon.as_str() {
"colorful" => {