mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
[Editor] Don't create the image settings dialog if new alt-text is disabled
This commit is contained in:
parent
4422e6fb3b
commit
974911f24f
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue