This commit is contained in:
huzibaca 2025-01-11 12:55:20 +08:00
parent c5989d2735
commit 13b63b5d96
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -208,6 +208,11 @@ pub async fn patch_verge(patch: IVerge) -> Result<()> {
if tun_mode.is_some() {
should_update_clash_config = true;
should_update_systray_menu = true;
#[cfg(target_os = "macos")]
{
should_update_systray_icon = true;
}
}
#[cfg(not(target_os = "windows"))]
@ -230,18 +235,21 @@ pub async fn patch_verge(patch: IVerge) -> Result<()> {
if auto_launch.is_some() {
should_update_launch = true;
}
if system_proxy.is_some()
|| proxy_bypass.is_some()
|| mixed_port.is_some()
|| pac.is_some()
|| pac_content.is_some()
if system_proxy.is_some() {
should_update_sysproxy = true;
should_update_systray_menu = true;
#[cfg(target_os = "macos")]
{
should_update_systray_icon = true;
}
}
if proxy_bypass.is_some() || pac_content.is_some() || pac.is_some() {
should_update_sysproxy = true;
}
if language.is_some()
|| system_proxy.is_some()
|| tun_mode.is_some()
|| common_tray_icon.is_some()
|| sysproxy_tray_icon.is_some()
|| tun_tray_icon.is_some()