1
0
Fork 0
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:
Calixte Denizet 2024-09-09 21:28:59 +02:00
parent a1b45d6e69
commit 6e4b7ee3f8
2 changed files with 24 additions and 0 deletions

View file

@ -346,6 +346,7 @@ class NewAltTextManager {
this.#firstTime = firstTime;
let { mlManager } = uiManager;
let hasAI = !!mlManager;
this.#toggleTitleAndDisclaimer();
if (mlManager && !mlManager.isReady("altText")) {
hasAI = false;