mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 03:03:46 +08:00
fix: unused variable
This commit is contained in:
parent
3baac034e5
commit
f8724c4cb9
@ -97,6 +97,7 @@ impl Tray {
|
|||||||
*tun_mode,
|
*tun_mode,
|
||||||
)?));
|
)?));
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
let mut use_custom_icon = false;
|
let mut use_custom_icon = false;
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
let mut indication_icon = if *system_proxy {
|
let mut indication_icon = if *system_proxy {
|
||||||
@ -120,7 +121,10 @@ impl Tray {
|
|||||||
} else if png_path.exists() {
|
} else if png_path.exists() {
|
||||||
icon = std::fs::read(png_path).unwrap();
|
icon = std::fs::read(png_path).unwrap();
|
||||||
}
|
}
|
||||||
use_custom_icon = true;
|
#[cfg(target_os = "macos")]
|
||||||
|
{
|
||||||
|
use_custom_icon = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
icon
|
icon
|
||||||
} else if *tun_mode {
|
} else if *tun_mode {
|
||||||
@ -144,7 +148,10 @@ impl Tray {
|
|||||||
} else if png_path.exists() {
|
} else if png_path.exists() {
|
||||||
icon = std::fs::read(png_path).unwrap();
|
icon = std::fs::read(png_path).unwrap();
|
||||||
}
|
}
|
||||||
use_custom_icon = true;
|
#[cfg(target_os = "macos")]
|
||||||
|
{
|
||||||
|
use_custom_icon = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
icon
|
icon
|
||||||
} else {
|
} else {
|
||||||
@ -168,7 +175,10 @@ impl Tray {
|
|||||||
} else if png_path.exists() {
|
} else if png_path.exists() {
|
||||||
icon = std::fs::read(png_path).unwrap();
|
icon = std::fs::read(png_path).unwrap();
|
||||||
}
|
}
|
||||||
use_custom_icon = true;
|
#[cfg(target_os = "macos")]
|
||||||
|
{
|
||||||
|
use_custom_icon = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
icon
|
icon
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user