Revert "[Editor] Dispatch changes in prefs enableAltTextModelDownload and enableGuessAltText to the viewer (bug 1912024)"

This commit is contained in:
calixteman 2024-08-07 23:11:31 +02:00 committed by GitHub
parent fef2853263
commit 6c005eabb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 51 additions and 162 deletions

View file

@ -404,7 +404,9 @@ const PDFViewerApplication = {
} else {
eventBus = new EventBus();
}
this.mlManager?.setEventBus(eventBus, this._globalAbortController.signal);
if (this.mlManager) {
this.mlManager.eventBus = eventBus;
}
this.eventBus = eventBus;
this.overlayManager = new OverlayManager();