mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
[Editor] Avoid to have the ML disclaimer when the ML engine isn't ready (bug 1917543)
This commit is contained in:
parent
a1b45d6e69
commit
6e4b7ee3f8
2 changed files with 24 additions and 0 deletions
|
@ -346,6 +346,7 @@ class NewAltTextManager {
|
|||
this.#firstTime = firstTime;
|
||||
let { mlManager } = uiManager;
|
||||
let hasAI = !!mlManager;
|
||||
this.#toggleTitleAndDisclaimer();
|
||||
|
||||
if (mlManager && !mlManager.isReady("altText")) {
|
||||
hasAI = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue