mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
display error message when attempting to mix from account 0 and it is not the master wallet
This commit is contained in:
parent
995d2c5e4e
commit
218e751333
1 changed files with 5 additions and 0 deletions
|
@ -278,6 +278,11 @@ public class UtxosController extends WalletFormController implements Initializab
|
|||
}
|
||||
|
||||
public void mixSelected(ActionEvent event) {
|
||||
if(!getWalletForm().getWallet().isMasterWallet() && getWalletForm().getWallet().getStandardAccountType() == StandardAccount.ACCOUNT_0) {
|
||||
showErrorDialog("Invalid Whirlpool wallet", "Create a new wallet with Account #0 as the first account.");
|
||||
return;
|
||||
}
|
||||
|
||||
List<UtxoEntry> selectedEntries = getSelectedUtxos();
|
||||
WhirlpoolDialog whirlpoolDialog = new WhirlpoolDialog(getWalletForm().getMasterWalletId(), getWalletForm().getWallet(), selectedEntries);
|
||||
whirlpoolDialog.initOwner(utxosTable.getScene().getWindow());
|
||||
|
|
Loading…
Reference in a new issue