Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit d3dbcae

Browse files
committed
Fixed bug in remove_frontend
1 parent 6ff6da6 commit d3dbcae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src-tauri/src/commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ pub async fn startup(app_handle: tauri::AppHandle) {
355355
}
356356

357357
#[tauri::command]
358-
pub async fn remove_frontend(app_handle: tauri::AppHandle, frontend: &str) -> Result<(), ()> {
358+
pub async fn remove_frontend(app_handle: tauri::AppHandle, frontend: &str) -> Result<String, ()> {
359359
let binding = app_handle.path_resolver().app_local_data_dir().unwrap();
360360
let path = Path::new(binding.to_str().unwrap()).join(frontend);
361361
remove_dir_all(path).unwrap();
362-
Ok(())
362+
Ok("not_downloaded".into())
363363
}

0 commit comments

Comments
 (0)