feat: compatible with macos(wip)

This commit is contained in:
GyDi
2021-12-29 18:49:38 +08:00
parent 63b01376d6
commit 1d87f78088
4 changed files with 22 additions and 22 deletions

View File

@@ -17,7 +17,7 @@ use tauri::{api::process::kill_children, AppHandle, State};
#[tauri::command]
pub fn restart_sidecar(app_handle: AppHandle, clash_info: State<'_, ClashInfoState>) {
kill_children();
let payload = run_clash_bin(&app_handle);
let payload = run_clash_bin(&app_handle, |_| {});
if let Ok(mut arc) = clash_info.0.lock() {
*arc = payload;