Skip to content

Commit 974911f

Browse files
committed
[Editor] Don't create the image settings dialog if new alt-text is disabled
1 parent 4422e6f commit 974911f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/app.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,10 @@ const PDFViewerApplication = {
557557
}
558558
}
559559

560-
if (appConfig.secondaryToolbar?.imageAltTextSettingsButton) {
560+
if (
561+
this.mlManager &&
562+
appConfig.secondaryToolbar?.imageAltTextSettingsButton
563+
) {
561564
this.imageAltTextSettings = new ImageAltTextSettings(
562565
appConfig.altTextSettingsDialog,
563566
this.overlayManager,

0 commit comments

Comments
 (0)