PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Open dialog: allow selecting several files at once (#1086)
Lucase4c9cc1a195c
diff --git a/contributors/people.toml b/contributors/people.tomlindex c76ac2f79..ce91b7fba 100644--- a/contributors/people.toml+++ b/contributors/people.toml@@ -88,3 +88,8 @@ sync_github_name = falsereal_name = "Atos Lins"display_name = "Atos Lins"sync_github_name = false++[people.LucasT-dev]+real_name = "Lucas"+display_name = "Lucas"+sync_github_name = true # use the name on your public GitHub profile as display namediff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rsindex 91d534802..6997e785f 100644--- a/crates/ui-egui/src/lib.rs+++ b/crates/ui-egui/src/lib.rs@@ -1230,7 +1230,11 @@ impl PdfCraftApp {pub fn open_dialog(&mut self) {self.startup_superseded = true;#[cfg(not(target_arch = "wasm32"))]- self.pick(pickers::PickFor::Open, Self::open_picker(), false);+ self.pick(+ pickers::PickFor::Open,+ rfd::AsyncFileDialog::new().add_filter("PDF", &["pdf"]).add_filter(tl!("Images and text (converted to PDF)"), &create_ui::CONVERTIBLE),+ true,+ );// Browsers pick files asynchronously; the bytes arrive through `inbox`.#[cfg(target_arch = "wasm32")]{