feat: add unified delay

This commit is contained in:
huzibaca
2024-11-05 16:24:58 +08:00
parent ab7775e1ef
commit 2833718c90
15 changed files with 37 additions and 24 deletions

View File

@@ -119,14 +119,15 @@ pub async fn patch_clash(patch: Mapping) -> Result<()> {
Config::generate().await?;
CoreManager::global().restart_core().await?;
handle::Handle::refresh_clash();
}
} else {
if patch.get("mode").is_some() {
log_err!(handle::Handle::update_systray_part());
}
if patch.get("mode").is_some() {
log_err!(handle::Handle::update_systray_part());
Config::runtime().latest().patch_config(patch);
update_core_config(false).await?;
}
Config::runtime().latest().patch_config(patch);
<Result<()>>::Ok(())
};
match res {