fix(tray): refresh icon with latest draft before apply() commits

This commit is contained in:
Slinetrac
2025-11-12 11:41:28 +08:00
parent a5f2b163f1
commit 2ea22feb95

View File

@@ -218,7 +218,7 @@ async fn process_terminated_flags(update_flags: i32, patch: &IVerge) -> Result<(
} }
if (update_flags & (UpdateFlags::SystrayIcon as i32)) != 0 { if (update_flags & (UpdateFlags::SystrayIcon as i32)) != 0 {
tray::Tray::global() tray::Tray::global()
.update_icon(&Config::verge().await.data_arc()) .update_icon(&Config::verge().await.latest_arc())
.await?; .await?;
} }
if (update_flags & (UpdateFlags::SystrayTooltip as i32)) != 0 { if (update_flags & (UpdateFlags::SystrayTooltip as i32)) != 0 {