mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
followup to disable adding accounts to p2sh legacy multisig
This commit is contained in:
parent
58e3b9dcdd
commit
2548e77d90
1 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ public class SettingsController extends WalletFormController implements Initiali
|
||||||
|
|
||||||
scanDescriptorQR.setVisible(!walletForm.getWallet().isValid());
|
scanDescriptorQR.setVisible(!walletForm.getWallet().isValid());
|
||||||
export.setDisable(!walletForm.getWallet().isValid());
|
export.setDisable(!walletForm.getWallet().isValid());
|
||||||
addAccount.setDisable(!walletForm.getWallet().isValid());
|
addAccount.setDisable(!walletForm.getWallet().isValid() || walletForm.getWallet().getScriptType() == ScriptType.P2SH);
|
||||||
revert.setDisable(true);
|
revert.setDisable(true);
|
||||||
apply.setDisable(true);
|
apply.setDisable(true);
|
||||||
}
|
}
|
||||||
|
@ -563,7 +563,7 @@ public class SettingsController extends WalletFormController implements Initiali
|
||||||
public void walletSettingsChanged(WalletSettingsChangedEvent event) {
|
public void walletSettingsChanged(WalletSettingsChangedEvent event) {
|
||||||
if(event.getWalletId().equals(walletForm.getWalletId())) {
|
if(event.getWalletId().equals(walletForm.getWalletId())) {
|
||||||
export.setDisable(!event.getWallet().isValid());
|
export.setDisable(!event.getWallet().isValid());
|
||||||
addAccount.setDisable(!event.getWallet().isValid());
|
addAccount.setDisable(!event.getWallet().isValid() || event.getWallet().getScriptType() == ScriptType.P2SH);
|
||||||
scanDescriptorQR.setVisible(!event.getWallet().isValid());
|
scanDescriptorQR.setVisible(!event.getWallet().isValid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue