mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Don't warn when navigating away from a modified form, if printing has occurred (issue 12262)
This solution is obviously *not* perfect, since printing being cancelled will thus remove the warning as well. However, a similar problem already exists for saving, since the user may cancel that one as well. All-in-all, since way cannot really detect with absolute certainty that either saving or printing actually finished, this seems good enough for now.
This commit is contained in:
parent
9d7609d255
commit
f2e3d6c819
1 changed files with 4 additions and 0 deletions
|
@ -1687,6 +1687,10 @@ const PDFViewerApplication = {
|
|||
if (this.printService) {
|
||||
this.printService.destroy();
|
||||
this.printService = null;
|
||||
|
||||
if (this.pdfDocument) {
|
||||
this.pdfDocument.annotationStorage.resetModified();
|
||||
}
|
||||
}
|
||||
this.forceRendering();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue