Bladeren bron

fix: linux not change icon

GyDi 2 jaren geleden
bovenliggende
commit
6e391df5ee
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      src-tauri/Cargo.toml
  2. 1 1
      src-tauri/src/core/tray.rs

+ 1 - 1
src-tauri/Cargo.toml

@@ -53,7 +53,7 @@ windows-sys = { version = "0.48", features = ["Win32_System_LibraryLoader", "Win
 features = ["global-shortcut-all", "icon-png", "process-all", "shell-all", "system-tray", "updater", "window-all"]
 
 [target.'cfg(linux)'.dependencies.tauri]
-features = ["global-shortcut-all", "icon-png", "process-all", "shell-all", "system-tray", "updater", "window-all", "native-tls-vendored", "reqwest-native-tls-vendored"]
+features = ["global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all", "native-tls-vendored", "reqwest-native-tls-vendored"]
 
 
 [features]

+ 1 - 1
src-tauri/src/core/tray.rs

@@ -107,7 +107,7 @@ impl Tray {
         let system_proxy = verge.enable_system_proxy.as_ref().unwrap_or(&false);
         let tun_mode = verge.enable_tun_mode.as_ref().unwrap_or(&false);
 
-        #[cfg(not(target_os = "macos"))]
+        #[cfg(target_os = "windows")]
         {
             let indication_icon = if *system_proxy {
                 include_bytes!("../../icons/tray-icon-activated.png").to_vec()