mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10: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(
|
this.imageAltTextSettings = new ImageAltTextSettings(
|
||||||
appConfig.altTextSettingsDialog,
|
appConfig.altTextSettingsDialog,
|
||||||
this.overlayManager,
|
this.overlayManager,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue