fix: tray icon and tray rate display expression logic bug

This commit is contained in:
Tunglies
2025-03-26 19:07:09 +08:00
parent 42db9ea0bb
commit 6e40dd9862
6 changed files with 9 additions and 10 deletions

View File

@@ -256,7 +256,7 @@ impl Tray {
*icon_bytes_guard = Some(icon_bytes.clone());
}
if !enable_tray_speed || (!enable_tray_speed && !enable_tray_icon) {
if !enable_tray_speed {
let _ = tray.set_icon(Some(tauri::image::Image::from_bytes(
&(*icon_bytes_guard).clone().unwrap(),
)?));