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:
commit
493bb65005
@ -133,8 +133,10 @@ class PDFCursorTools {
|
|||||||
case PresentationModeState.NORMAL: {
|
case PresentationModeState.NORMAL: {
|
||||||
const previouslyActive = this.activeBeforePresentationMode;
|
const previouslyActive = this.activeBeforePresentationMode;
|
||||||
|
|
||||||
this.activeBeforePresentationMode = null;
|
if (previouslyActive !== null) {
|
||||||
this.switchTool(previouslyActive);
|
this.activeBeforePresentationMode = null;
|
||||||
|
this.switchTool(previouslyActive);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user