[Editor] Don't create the image settings dialog if new alt-text is disabled
This commit is contained in:
parent
4422e6fb3b
commit
974911f24f
@ -557,7 +557,10 @@ const PDFViewerApplication = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (appConfig.secondaryToolbar?.imageAltTextSettingsButton) {
|
if (
|
||||||
|
this.mlManager &&
|
||||||
|
appConfig.secondaryToolbar?.imageAltTextSettingsButton
|
||||||
|
) {
|
||||||
this.imageAltTextSettings = new ImageAltTextSettings(
|
this.imageAltTextSettings = new ImageAltTextSettings(
|
||||||
appConfig.altTextSettingsDialog,
|
appConfig.altTextSettingsDialog,
|
||||||
this.overlayManager,
|
this.overlayManager,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user