show scan progress

This commit is contained in:
Julian Freeman
2026-03-03 16:27:43 -04:00
parent 8efbb3ebc4
commit 39e2f41aab
3 changed files with 50 additions and 6 deletions

View File

@@ -14,8 +14,8 @@ async fn start_fast_clean(selected_paths: Vec<String>) -> Result<cleaner::CleanR
}
#[tauri::command]
async fn start_full_disk_scan(state: State<'_, cleaner::DiskState>) -> Result<(), String> {
cleaner::run_full_scan("C:\\".to_string(), &state).await;
async fn start_full_disk_scan(state: State<'_, cleaner::DiskState>, app_handle: tauri::AppHandle) -> Result<(), String> {
cleaner::run_full_scan("C:\\".to_string(), &state, app_handle).await;
Ok(())
}