mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-13 13:30:31 +08:00
fix(tray): refresh icon with latest draft before apply() commits
This commit is contained in:
parent
a5f2b163f1
commit
2ea22feb95
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user