support context menu
This commit is contained in:
@@ -24,6 +24,11 @@ async fn get_tree_children(path: String, state: State<'_, cleaner::DiskState>) -
|
||||
Ok(cleaner::get_children(path, &state))
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn open_in_explorer(path: String) -> Result<(), String> {
|
||||
cleaner::open_explorer(path).await
|
||||
}
|
||||
|
||||
// --- 高级清理命令 ---
|
||||
|
||||
#[tauri::command]
|
||||
@@ -54,6 +59,7 @@ pub fn run() {
|
||||
start_fast_clean,
|
||||
start_full_disk_scan,
|
||||
get_tree_children,
|
||||
open_in_explorer,
|
||||
clean_system_components,
|
||||
clean_thumbnails,
|
||||
disable_hibernation
|
||||
|
||||
Reference in New Issue
Block a user