summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-02 11:18:52 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-02 11:18:52 +0200
commitc473a23a59da1593536556bbcb99367fb674c0fa (patch)
tree7f5ccc614ba4b3132ddf5e2bcbe57d248970cdfb /pdf-over-gui/src/main/java
parent455b0df12d9bf78c502f5546aee12a287cc13652 (diff)
downloadpdf-over-c473a23a59da1593536556bbcb99367fb674c0fa.tar.gz
pdf-over-c473a23a59da1593536556bbcb99367fb674c0fa.tar.bz2
pdf-over-c473a23a59da1593536556bbcb99367fb674c0fa.zip
save "remember password" state on user cancel, cf. #105
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java3
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());