mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
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
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