Merge pull request #17651 from calixteman/add_enableStamp_pref

Revert "Remove the `enableStampEditor` preference" (bug 1879588)
This commit is contained in:
calixteman 2024-02-11 18:53:09 +01:00 committed by GitHub
commit 5cfaff508c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 3 deletions

View file

@ -454,8 +454,8 @@ const PDFViewerApplication = {
if (appConfig.annotationEditorParams) {
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
if (!isOffscreenCanvasSupported) {
appConfig.toolbar?.editorStampButton?.classList.add("hidden");
if (AppOptions.get("enableStampEditor") && isOffscreenCanvasSupported) {
appConfig.toolbar?.editorStampButton?.classList.remove("hidden");
}
const editorHighlightButton = appConfig.toolbar?.editorHighlightButton;