refactor: logic optimization

This commit is contained in:
huzibaca
2024-09-27 00:24:05 +08:00
parent 11a8e3465f
commit c50e8f9de8
4 changed files with 86 additions and 134 deletions

View File

@@ -185,7 +185,7 @@ pub async fn change_clash_core(clash_core: Option<String>) -> CmdResult {
/// restart the sidecar
#[tauri::command]
pub async fn restart_sidecar() -> CmdResult {
wrap_err!(CoreManager::global().run_core().await)
wrap_err!(CoreManager::global().restart_core().await)
}
/// get the system proxy