perf: imporve clash mode switching performance on the main window (#2667)

This commit is contained in:
Tunglies
2025-02-09 07:45:46 +08:00
committed by GitHub
parent a3d0a38b1e
commit ebe0899eb1
5 changed files with 13 additions and 3 deletions

View File

@@ -66,7 +66,6 @@ pub fn restart_app() {
pub fn change_clash_mode(mode: String) {
let mut mapping = Mapping::new();
mapping.insert(Value::from("mode"), mode.clone().into());
tauri::async_runtime::spawn(async move {
log::debug!(target: "app", "change clash mode to {mode}");