Skip to content

Commit

Permalink
Disable the editing-indicator, in the document title, during printing…
Browse files Browse the repository at this point in the history
… (bug 1790552, PR 15351 follow-up)
  • Loading branch information
Snuffleupagus committed Sep 13, 2022
1 parent 493bb65 commit ed94970
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,9 @@ const PDFViewerApplication = {
// Embedded PDF viewers should not be changing their parent page's title.
return;
}
document.title = `${this._hasAnnotationEditors ? "* " : ""}${title}`;
const editorIndicator =
this._hasAnnotationEditors && !this.pdfRenderingQueue.printing;
document.title = `${editorIndicator ? "* " : ""}${title}`;
},

get _docFilename() {
Expand Down Expand Up @@ -1844,6 +1846,7 @@ const PDFViewerApplication = {
);
this.printService = printService;
this.forceRendering();
this.setTitle();

printService.layout();

Expand Down Expand Up @@ -1874,6 +1877,7 @@ const PDFViewerApplication = {
this.pdfDocument?.annotationStorage.resetModified();
}
this.forceRendering();
this.setTitle();
},

rotatePages(delta) {
Expand Down

0 comments on commit ed94970

Please sign in to comment.