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

@ -79,10 +79,6 @@ class FakeMLManager {
this.enableAltTextModelDownload = enableAltTextModelDownload;
}
setEventBus(eventBus, abortSignal) {
this.eventBus = eventBus;
}
async isEnabledFor(_name) {
return this.enableGuessAltText;
}