From f65a7f13489a19e18667c013d4b8578549dab5c1 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Wed, 4 Nov 2026 08:13:21 +0800 Subject: [PATCH] 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: e60285b4ae878021622e07a7654a8476e78cc62d --- src-tauri/src/core/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/core/service.rs b/src-tauri/src/core/service.rs index 97426598a..05cf15d57 100644 --- a/src-tauri/src/core/service.rs +++ b/src-tauri/src/core/service.rs @@ -1970,7 +1970,7 @@ impl ServiceManager { async fn run_operation(&self, operation: impl Future>) -> 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,