From b7e5b0b75bbb9b64b49c07ea2b6ed26bb426a861 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Mon, 13 Jul 2026 18:47:21 +0200 Subject: [PATCH] feat(ui): Let the user pick multiple packages at once --- .../view/app/cluster/package_manager/views.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/oneclient_app/src/view/app/cluster/package_manager/views.rs b/packages/oneclient_app/src/view/app/cluster/package_manager/views.rs index bc8b3cea..529adc16 100644 --- a/packages/oneclient_app/src/view/app/cluster/package_manager/views.rs +++ b/packages/oneclient_app/src/view/app/cluster/package_manager/views.rs @@ -405,16 +405,18 @@ fn add_from_file_button( .on_press(move |_| { let dispatch = dispatch.clone(); spawn(async move { - if let Some(handle) = rfd::AsyncFileDialog::new() - .set_title("Select a file to import") - .pick_file() + if let Some(handles) = rfd::AsyncFileDialog::new() + .set_title("Select files to import") + .pick_files() .await { - dispatch.import_local_file( - cluster_id, - content_type, - handle.path().to_path_buf(), - ); + for handle in handles { + dispatch.import_local_file( + cluster_id, + content_type, + handle.path().to_path_buf(), + ); + } } }); })