Open dialog: allow selecting several files at once (#1086)

* Open dialog: allow selecting several files at once

* add contribution in people.toml

* people.toml: restore arcanii and atoslins (lost in a merge); key the new entry by GitHub login

---------

Co-authored-by: Brandon Thomas <[email protected]>
This commit is contained in:
LucasandBrandon Thomas authored and GitHub committed 2026-10-11 14:28:42 -04:00
1 parent 42cfc6a8f2
commit e4c9cc1a19
2 files changed
+10 -1

No files matched your search

+5
View File
@@ -88,3 +88,8 @@ sync_github_name = false
real_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 name
+5 -1
View File
@@ -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")]
{