mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
feat: compatible with macos(wip)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user