fix(service): avoid sticky availability probes

This commit is contained in:
wonfen
2026-07-25 15:22:46 +08:00
parent 7796259b03
commit e599a9d02c
10 changed files with 68 additions and 203 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ impl Tray {
let verge = Config::verge().await.latest_arc();
let system_proxy = verge.enable_system_proxy.as_ref().unwrap_or(&false);
let tun_mode = verge.enable_tun_mode.as_ref().unwrap_or(&false);
let tun_mode_available = is_current_app_handle_admin(app_handle) || service::is_service_available().await;
let tun_mode_available = is_current_app_handle_admin(app_handle) || service::SERVICE_MANAGER.is_ready_cached();
let mode = {
Config::clash()
.await