1
0
Fork 0
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:
Calixte Denizet 2024-08-07 15:37:55 +02:00
parent e099840100
commit 1d51c3e711
6 changed files with 164 additions and 53 deletions

View file

@ -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();