fix accidentally making keystore fields editable on loading of single account non-watchonly wallets

This commit is contained in:
Craig Raw 2023-03-29 09:22:45 +02:00
parent 6063b02113
commit 49e70e8e9b

View file

@ -199,7 +199,9 @@ public class KeystoreController extends WalletFormController implements Initiali
scanXpubQR.setVisible(!valid); 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) { private void setXpubContext(ExtendedKey extendedKey) {