feat(profile): raise auto-update intervals below 24h

Each auto-update reloads the core, which drops every connection running through a
`proxy-providers` entry. Existing profiles are corrected once at startup; the form
warns about shorter intervals but still saves them.
This commit is contained in:
wonfen
2026-08-17 12:14:24 +08:00
parent 73d986369c
commit ec6241b30a
21 changed files with 215 additions and 17 deletions
+4
View File
@@ -48,6 +48,10 @@ pub fn resolve_setup_async() {
AsyncHandler::spawn(|| async {
logging!(info, Type::ClashVergeRev, "Version: {}", env!("CARGO_PKG_VERSION"));
// Ahead of the window and init_timer: anything saved or deep-link-imported after the app
// is up is a deliberate choice. Config files already exist (init_work_dir_and_logger).
logging_error!(Type::Setup, init::migrate_short_update_intervals().await);
#[cfg(target_os = "macos")]
resolve_dock_show().await;
init_startup_script().await;