support context menu

This commit is contained in:
Julian Freeman
2026-03-03 13:19:18 -04:00
parent e7030f0be1
commit dbec37cd3d
3 changed files with 128 additions and 0 deletions

View File

@@ -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