From fc03ce1247eafb88f7e94eabfd71fc361859b672 Mon Sep 17 00:00:00 2001 From: downer <17774400+downerxl@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:07:21 +0800 Subject: [PATCH] fix: fix TUN icon is overwritten by system proxy icon (#1961) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 周晓亮 --- src-tauri/src/core/tray.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/core/tray.rs b/src-tauri/src/core/tray.rs index 9c92ca64..834cdb2a 100644 --- a/src-tauri/src/core/tray.rs +++ b/src-tauri/src/core/tray.rs @@ -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" => {