diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-02 11:18:52 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-02 11:18:52 +0200 |
commit | c473a23a59da1593536556bbcb99367fb674c0fa (patch) | |
tree | 7f5ccc614ba4b3132ddf5e2bcbe57d248970cdfb | |
parent | 455b0df12d9bf78c502f5546aee12a287cc13652 (diff) | |
download | pdf-over-c473a23a59da1593536556bbcb99367fb674c0fa.tar.gz pdf-over-c473a23a59da1593536556bbcb99367fb674c0fa.tar.bz2 pdf-over-c473a23a59da1593536556bbcb99367fb674c0fa.zip |
save "remember password" state on user cancel, cf. #105
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 aee5827f..fc4025c0 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 @@ -260,6 +260,8 @@ public class MobileBKUState extends State { }
}
+ getStateMachine().configProvider.setRememberMobilePasswordPersistent(ui.isRememberPassword());
+
if (ui.userCancel) {
ui.userCancel = false;
mobileStatus.errorMessage = "cancel";
@@ -272,7 +274,6 @@ public class MobileBKUState extends State { // get number and password from UI
mobileStatus.phoneNumber = ui.getMobileNumber();
mobileStatus.mobilePassword = ui.getMobilePassword();
- getStateMachine().configProvider.setRememberMobilePasswordPersistent(ui.isRememberPassword());
// show waiting composite
getStateMachine().display(this.getWaitingComposite());
|