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:
Tunglies
2026-11-04 11:19:16 +08:00
parent 14abc4c4ee
commit f65a7f1348
+1 -1
View File
@@ -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,