Merge remote-tracking branch 'nyanpasu/main'

This commit is contained in:
wonfen committed 2023-11-22 06:48:30 +08:00
commit bd39e98c66
78 files changed
+4361 -2559

No files matched your search

+2 -2
View File
@@ -176,9 +176,9 @@ pub async fn restart_sidecar() -> CmdResult {
}
#[tauri::command]
pub fn grant_permission(core: String) -> CmdResult {
pub fn grant_permission(_core: String) -> CmdResult {
#[cfg(any(target_os = "macos", target_os = "linux"))]
return wrap_err!(manager::grant_permission(core));
return wrap_err!(manager::grant_permission(_core));
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
return Err("Unsupported target".into());