1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Merge pull request #18540 from calixteman/no_ml_settings

[Editor] Don't create the image settings dialog if new alt-text is disabled
This commit is contained in:
Jonas Jenwald 2024-08-02 12:14:12 +02:00 committed by GitHub
commit 464d534961
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -557,7 +557,10 @@ const PDFViewerApplication = {
}
}
if (appConfig.secondaryToolbar?.imageAltTextSettingsButton) {
if (
this.mlManager &&
appConfig.secondaryToolbar?.imageAltTextSettingsButton
) {
this.imageAltTextSettings = new ImageAltTextSettings(
appConfig.altTextSettingsDialog,
this.overlayManager,