mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
fix accidentally making keystore fields editable on loading of single account non-watchonly wallets
This commit is contained in:
parent
6063b02113
commit
49e70e8e9b
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue