Integration: #1960 put the attachment_action doc line back above attachment_action

This commit is contained in:
aiongg
2026-10-24 07:00:29 +00:00
parent f053da3d93
commit cededfaccb
+1 -1
View File
@@ -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 };