diff options
author | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2021-10-14 15:33:34 +0200 |
---|---|---|
committer | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2021-10-14 15:33:34 +0200 |
commit | aaeeda19346f2fb1f7a2d0b15f0f16fc345d7cd7 (patch) | |
tree | f3ba938120f77f6e68277e720390ca59a8428116 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow | |
parent | dd6f9d619008b4e3bcd5b163a25d3cf91836bf03 (diff) | |
download | pdf-over-aaeeda19346f2fb1f7a2d0b15f0f16fc345d7cd7.tar.gz pdf-over-aaeeda19346f2fb1f7a2d0b15f0f16fc345d7cd7.tar.bz2 pdf-over-aaeeda19346f2fb1f7a2d0b15f0f16fc345d7cd7.zip |
fixed problem with the about pdf-over text field
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java index b0c5de85..24b33e84 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java @@ -152,13 +152,18 @@ public class PrepareConfigurationState extends State { Locale loc = config.getSignatureLocale(); String note_old = Messages.getString("simple_config.Note_Default_Old", loc); //$NON-NLS-1$ - if (note.equals(note_old)) { - String profile = config.getSignatureProfile(); - note = Profile.getSignatureBlockNoteTextAccordingToProfile(Profile.getProfile(profile), config.getLocale()); - getStateMachine().getConfigManipulator().setSignatureNote(note); + if (!note.equals(note_old)) { + updateSignatureNoteField(config); } } + private void updateSignatureNoteField(ConfigProvider config){ + String note; + String profile = config.getSignatureProfile(); + note = Profile.getSignatureBlockNoteTextAccordingToProfile(Profile.getProfile(profile), config.getLocale()); + getStateMachine().getConfigManipulator().setSignatureNote(note); + } + private void initializeFromArguments(String[] args, ArgumentHandler handler) throws InitializationException { handler.handleArguments(args); |