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:
commit
464d534961
@ -557,7 +557,10 @@ const PDFViewerApplication = {
|
||||
}
|
||||
}
|
||||
|
||||
if (appConfig.secondaryToolbar?.imageAltTextSettingsButton) {
|
||||
if (
|
||||
this.mlManager &&
|
||||
appConfig.secondaryToolbar?.imageAltTextSettingsButton
|
||||
) {
|
||||
this.imageAltTextSettings = new ImageAltTextSettings(
|
||||
appConfig.altTextSettingsDialog,
|
||||
this.overlayManager,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user