diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-04 14:01:36 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-04 14:01:36 +0200 |
commit | e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55 (patch) | |
tree | 5c2fc9c066ea1fa09258e865d20dbeee7908f5a2 /pdf-over-gui | |
parent | 671d24d8e638b073b3aa5da00526978af2ebd06b (diff) | |
download | pdf-over-e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55.tar.gz pdf-over-e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55.tar.bz2 pdf-over-e1b8dfe23f6d906f5f5df47cdefcf4fb0f765d55.zip |
disable signature lang/note for non-text profiles
Diffstat (limited to 'pdf-over-gui')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java | 6 |
1 files changed, 5 insertions, 1 deletions
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(); } |