From 2bebb0925edfc4ce75a0a802ab8c3164276a8eb4 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Sun, 30 Aug 2020 11:24:49 +0200 Subject: [PATCH] wallet save fixes --- .../com/sparrowwallet/sparrow/wallet/SettingsController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java index ac017b9a..5c74f2af 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java @@ -286,7 +286,7 @@ public class SettingsController extends WalletFormController implements Initiali } } - if(password.get().length() == 0) { + if(password.get().length() == 0 && requirement != WalletPasswordDialog.PasswordRequirement.UPDATE_SET) { try { walletForm.getStorage().setEncryptionPubKey(Storage.NO_PASSWORD_KEY); walletForm.saveAndRefresh(); @@ -339,6 +339,9 @@ public class SettingsController extends WalletFormController implements Initiali EventManager.get().post(new StorageEvent(walletForm.getWalletFile(), TimedEvent.Action.START, "Encrypting wallet...")); keyDerivationService.start(); } + } else { + revert.setDisable(false); + apply.setDisable(false); } } }