fix cancel of create wallet in terminal

This commit is contained in:
Craig Raw 2022-11-21 08:51:09 +02:00
parent 011bb86b5f
commit 47f7b8870c

View file

@ -147,6 +147,7 @@ public class MasterActionListBox extends ActionListBox {
newWalletNameBuilder.setValidator(content -> content.isEmpty() ? "Please enter a name" : (Storage.walletExists(content) ? "Wallet already exists" : null)); newWalletNameBuilder.setValidator(content -> content.isEmpty() ? "Please enter a name" : (Storage.walletExists(content) ? "Wallet already exists" : null));
String walletName = newWalletNameBuilder.build().showDialog(SparrowTerminal.get().getGui()); String walletName = newWalletNameBuilder.build().showDialog(SparrowTerminal.get().getGui());
if(walletName != null) {
ActionListDialogBuilder newBuilder = new ActionListDialogBuilder(); ActionListDialogBuilder newBuilder = new ActionListDialogBuilder();
newBuilder.setTitle("Create Wallet"); newBuilder.setTitle("Create Wallet");
newBuilder.setDescription("Choose the type of wallet"); newBuilder.setDescription("Choose the type of wallet");
@ -160,4 +161,5 @@ public class MasterActionListBox extends ActionListBox {
}); });
newBuilder.build().showDialog(SparrowTerminal.get().getGui()); newBuilder.build().showDialog(SparrowTerminal.get().getGui());
} }
}
} }