mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-14 19:27:04 -04:00
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:
1 parent
42cfc6a8f2
commit
e4c9cc1a19
2 files changed
+10
-1
No files matched your search
@@ -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
|
||||
@@ -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")]
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user