Skip to content

Commit

Permalink
Merge pull request #18540 from calixteman/no_ml_settings
Browse files Browse the repository at this point in the history
[Editor] Don't create the image settings dialog if new alt-text is disabled
  • Loading branch information
Snuffleupagus committed Aug 2, 2024
2 parents 4422e6f + 974911f commit 464d534
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,10 @@ const PDFViewerApplication = {
}
}

if (appConfig.secondaryToolbar?.imageAltTextSettingsButton) {
if (
this.mlManager &&
appConfig.secondaryToolbar?.imageAltTextSettingsButton
) {
this.imageAltTextSettings = new ImageAltTextSettings(
appConfig.altTextSettingsDialog,
this.overlayManager,
Expand Down

0 comments on commit 464d534

Please sign in to comment.