mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Dispatch changes in prefs enableAltTextModelDownload and enableGuessAltText to the viewer (bug 1912024)
The user can change a setting in a tab and it must have an effect in the current viewer.
This commit is contained in:
parent
e099840100
commit
1d51c3e711
6 changed files with 164 additions and 53 deletions
|
@ -404,9 +404,7 @@ const PDFViewerApplication = {
|
|||
} else {
|
||||
eventBus = new EventBus();
|
||||
}
|
||||
if (this.mlManager) {
|
||||
this.mlManager.eventBus = eventBus;
|
||||
}
|
||||
this.mlManager?.setEventBus(eventBus, this._globalAbortController.signal);
|
||||
this.eventBus = eventBus;
|
||||
|
||||
this.overlayManager = new OverlayManager();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue