PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Integration: #1960 put the attachment_action doc line back above attachment_action
aionggcededfaccba8
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rsindex bf48c682e..3fceef00e 100644--- a/crates/ui-egui/src/lib.rs+++ b/crates/ui-egui/src/lib.rs@@ -1612,7 +1612,6 @@ impl PdfCraftApp {self.dialog_epoch}- /// Save an attachment to disk, or open a PDF attachment in a new tab./// Edit ▸ Attach a file…: choose a file, then attach it to the active document and show/// the Attachments panel with it.pub fn attach_file_dialog(&mut self) {@@ -1646,6 +1645,7 @@ impl PdfCraftApp {}}+ /// Save an attachment to disk, or open a PDF attachment in a new tab.pub fn attachment_action(&mut self, doc: DocId, index: usize, open: bool) {let Some(d) = self.session.get(doc) else { return };let Some(att) = d.info.attachments.get(index).cloned() else { return };