Don't try to update the cursorTool when switching to PresentationMode failed
Currently this may print an Error message in the console, and while nothing breaks (since no actual Error is thrown) we should probably avoid this.
This commit is contained in:
parent
f63d584cb1
commit
71f8680d66
@ -133,8 +133,10 @@ class PDFCursorTools {
|
||||
case PresentationModeState.NORMAL: {
|
||||
const previouslyActive = this.activeBeforePresentationMode;
|
||||
|
||||
this.activeBeforePresentationMode = null;
|
||||
this.switchTool(previouslyActive);
|
||||
if (previouslyActive !== null) {
|
||||
this.activeBeforePresentationMode = null;
|
||||
this.switchTool(previouslyActive);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user