mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-28 00:10:05 +08:00
refactor(updater): own the updater state in a single actor
This commit is contained in:
@@ -159,11 +159,7 @@ fn init_silent_updater() {
|
||||
|
||||
logging!(debug, Type::Setup, "Initializing silent updater...");
|
||||
|
||||
let app_handle = Handle::app_handle();
|
||||
let app_handle = app_handle.clone();
|
||||
tokio::spawn(async move {
|
||||
SilentUpdater::global().start_background_check(app_handle).await;
|
||||
});
|
||||
SilentUpdater::start(Handle::app_handle().clone());
|
||||
|
||||
logging!(info, Type::Setup, "Silent updater initialized");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user