From 49e70e8e9b7f53e74e420667983bd6a8a0c9da39 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 29 Mar 2023 09:22:45 +0200 Subject: [PATCH] fix accidentally making keystore fields editable on loading of single account non-watchonly wallets --- .../com/sparrowwallet/sparrow/wallet/KeystoreController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/KeystoreController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/KeystoreController.java index 7b2a6eb4..f6960172 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/KeystoreController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/KeystoreController.java @@ -199,7 +199,9 @@ public class KeystoreController extends WalletFormController implements Initiali scanXpubQR.setVisible(!valid); }); - setInputFieldsDisabled(keystore.getSource() != KeystoreSource.SW_WATCH && (!walletForm.getWallet().isMasterWallet() || !walletForm.getWallet().getChildWallets().isEmpty())); + if(keystore.getSource() != KeystoreSource.SW_WATCH && (!walletForm.getWallet().isMasterWallet() || !walletForm.getWallet().getChildWallets().isEmpty())) { + setInputFieldsDisabled(true); + } } private void setXpubContext(ExtendedKey extendedKey) {