From c473a23a59da1593536556bbcb99367fb674c0fa Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Tue, 2 Aug 2022 11:18:52 +0200 Subject: save "remember password" state on user cancel, cf. #105 --- .../main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pdf-over-gui') 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()); -- cgit v1.2.3