From 65fbf0f1bd2174c64d6adc06d0c5d76739fcd98c Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 1 Sep 2022 10:00:17 +0200 Subject: don't allow remember to be toggled on (only off) via the cancel button, cf. #105 --- .../main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java index bb1be5d0..456b3d64 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java @@ -261,7 +261,8 @@ public class MobileBKUState extends State { } } - getStateMachine().configProvider.setRememberMobilePasswordPersistent(ui.isRememberPassword()); + if (!(ui.userCancel && ui.isRememberPassword())) /* don't allow "remember" to be enabled via cancel button */ + getStateMachine().configProvider.setRememberMobilePasswordPersistent(ui.isRememberPassword()); if (ui.userCancel) { ui.userCancel = false; -- cgit v1.2.3