Disable the editing-indicator, in the document title, during printing (bug 1790552, PR 15351 follow-up)
This commit is contained in:
parent
493bb65005
commit
00aef590cf
@ -797,7 +797,9 @@ const PDFViewerApplication = {
|
|||||||
// Embedded PDF viewers should not be changing their parent page's title.
|
// Embedded PDF viewers should not be changing their parent page's title.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
document.title = `${this._hasAnnotationEditors ? "* " : ""}${title}`;
|
const editorIndicator =
|
||||||
|
this._hasAnnotationEditors && !this.pdfRenderingQueue.printing;
|
||||||
|
document.title = `${editorIndicator ? "* " : ""}${title}`;
|
||||||
},
|
},
|
||||||
|
|
||||||
get _docFilename() {
|
get _docFilename() {
|
||||||
@ -1844,6 +1846,8 @@ const PDFViewerApplication = {
|
|||||||
);
|
);
|
||||||
this.printService = printService;
|
this.printService = printService;
|
||||||
this.forceRendering();
|
this.forceRendering();
|
||||||
|
// Disable the editor-indicator during printing (fixes bug 1790552).
|
||||||
|
this.setTitle();
|
||||||
|
|
||||||
printService.layout();
|
printService.layout();
|
||||||
|
|
||||||
@ -1874,6 +1878,8 @@ const PDFViewerApplication = {
|
|||||||
this.pdfDocument?.annotationStorage.resetModified();
|
this.pdfDocument?.annotationStorage.resetModified();
|
||||||
}
|
}
|
||||||
this.forceRendering();
|
this.forceRendering();
|
||||||
|
// Re-enable the editor-indicator after printing (fixes bug 1790552).
|
||||||
|
this.setTitle();
|
||||||
},
|
},
|
||||||
|
|
||||||
rotatePages(delta) {
|
rotatePages(delta) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user