mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 16:43:14 +00:00
display error message when attempting to mix from account 0 and it is not the master wallet
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user