mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 02:52:07 +08:00
fix(tray): refresh icon after service operations
Refresh the tray menu, icon, and tooltip after service operations so restored TUN capability is reflected without changing the saved TUN setting.
Ref: e60285b4ae
This commit is contained in:
@@ -1970,7 +1970,7 @@ impl ServiceManager {
|
||||
|
||||
async fn run_operation(&self, operation: impl Future<Output = Result<()>>) -> Result<()> {
|
||||
run_operation_and_then(&RUN_STATE, operation, || async {
|
||||
if let Err(error) = Tray::global().update_menu().await {
|
||||
if let Err(error) = Tray::global().update_part().await {
|
||||
logging!(
|
||||
warn,
|
||||
Type::Service,
|
||||
|
||||
Reference in New Issue
Block a user