Drag and drop UI

This commit is contained in:
Kr4ight
2026-04-05 18:17:49 +02:00
parent d71c0c437d
commit e71617d535
5 changed files with 110 additions and 35 deletions
+4 -4
View File
@@ -290,11 +290,11 @@ pub fn update_version(state: State<SharedState>, version: String) {
#[tauri::command]
pub async fn install_paths(
app: &AppHandle,
state: &SharedState,
paths: &Vec<String>,
app: AppHandle,
state: State<'_, SharedState>,
paths: Vec<String>,
) -> Result<(), String> {
for path in paths {
for path in &paths {
let file = Path::new(&path)
.file_name()
.and_then(|name| name.to_str())