From 96d68b057a8e3ff6767f8262d5f406572c9871dd Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Wed, 30 Sep 2026 14:25:03 +0800 Subject: [PATCH] chore(core): document watcher exit conditions --- src-tauri/src/cmd/proxy.rs | 1 + src-tauri/src/core/updater.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src-tauri/src/cmd/proxy.rs b/src-tauri/src/cmd/proxy.rs index 66e027ce1..f3b22aa0f 100644 --- a/src-tauri/src/cmd/proxy.rs +++ b/src-tauri/src/cmd/proxy.rs @@ -84,6 +84,7 @@ pub async fn sync_tray_proxy_selection() -> CmdResult<()> { } async fn run_tray_sync_loop() { + // Permanent watcher: keeps syncing until a pass finds no pending sync request. loop { match Tray::global().update_menu().await { Ok(_) => { diff --git a/src-tauri/src/core/updater.rs b/src-tauri/src/core/updater.rs index c748c44d0..7d7552e71 100644 --- a/src-tauri/src/core/updater.rs +++ b/src-tauri/src/core/updater.rs @@ -490,6 +490,7 @@ impl SilentUpdater { } pub async fn start_background_check(&self, app_handle: tauri::AppHandle) { + // Permanent watcher: daily update cycles for the lifetime of the app. logging!(info, Type::System, "Silent updater: background task started"); tokio::time::sleep(std::time::Duration::from_secs(10)).await;