Merge pull request #15425 from Snuffleupagus/cursor-failed-fullscreen

Don't try to update the cursorTool when switching to PresentationMode failed
This commit is contained in:
calixteman 2022-09-12 14:51:55 +02:00 committed by GitHub
commit 493bb65005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,8 +133,10 @@ class PDFCursorTools {
case PresentationModeState.NORMAL: { case PresentationModeState.NORMAL: {
const previouslyActive = this.activeBeforePresentationMode; const previouslyActive = this.activeBeforePresentationMode;
if (previouslyActive !== null) {
this.activeBeforePresentationMode = null; this.activeBeforePresentationMode = null;
this.switchTool(previouslyActive); this.switchTool(previouslyActive);
}
break; break;
} }
} }