M7: a web save forgets the placed signature too (#2149)

Review follow-up on #2348: as the native save does, so a later save with the
question turned back on doesn't ask about what was already saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mtlcl410andClaude Opus 5.5 committed 2026-11-02 08:30:44 +08:00
1 parent 30aa8793f6
commit 58e28e1950
1 file changed
+4 -1
+4 -1
View File
@@ -110,7 +110,10 @@ impl PdfCraftApp {
};
match delivered {
Ok(()) => {
let _ = self.session.mark_saved(id, bytes, None);
// As the native save does: what was saved isn't asked about again (#2149).
if self.session.mark_saved(id, bytes, None).is_ok() {
self.placed_signatures.remove(&id);
}
if let Some(doc) = self.session.get(id)
&& let Some(view) = self.views.get_mut(index)
{