Re-enable editing, if necessary, when exiting PresentationMode (PR 16659 follow-up)

This regressed in PR 16659, when the signature of the `PDFViewer.annotationEditorMode`-setter was changed, and it currently leads to an Error being thrown when exiting PresentationMode.
This commit is contained in:
Jonas Jenwald 2023-07-11 22:26:23 +02:00
parent 73d650af3e
commit 7daa6b5fd8

View File

@ -209,7 +209,9 @@ class PDFPresentationMode {
this.pdfViewer.currentPageNumber = pageNumber;
if (this.#args.annotationEditorMode !== null) {
this.pdfViewer.annotationEditorMode = this.#args.annotationEditorMode;
this.pdfViewer.annotationEditorMode = {
mode: this.#args.annotationEditorMode,
};
}
this.#args = null;
}, 0);