Skip to content

Commit

Permalink
Fixed bug in remove_frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Apr 21, 2024
1 parent 6ff6da6 commit d3dbcae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ pub async fn startup(app_handle: tauri::AppHandle) {
}

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

0 comments on commit d3dbcae

Please sign in to comment.