From e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 4 Aug 2022 14:01:36 +0200 Subject: disable signature lang/note for non-text profiles --- .../gui/composites/configuration/SimpleConfigurationComposite.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pdf-over-gui') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java index 8f652603..f97f8c0b 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java @@ -511,7 +511,11 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { if (txtSignatureNote.getText().equals(getDefaultSignatureBlockNoteTextFor(oldProfile, null))) txtSignatureNote.setText(getDefaultSignatureBlockNoteTextFor(newProfile, null)); - this.grpPreview.setVisible(!Profile.INVISIBLE.equals(newProfile)); + this.cmbSignatureLang.setEnabled(newProfile.hasText()); + this.txtSignatureNote.setEnabled(newProfile.hasText()); + this.btnSignatureNoteDefault.setEnabled(newProfile.hasText()); + + this.grpPreview.setVisible(newProfile.isVisibleSignature()); signatureBlockPreviewChanged(); } -- cgit v1.2.3