fix cancel of create wallet in terminal
@@ -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));
String walletName = newWalletNameBuilder.build().showDialog(SparrowTerminal.get().getGui());
+ if(walletName != null) {
ActionListDialogBuilder newBuilder = new ActionListDialogBuilder();
newBuilder.setTitle("Create Wallet");
newBuilder.setDescription("Choose the type of wallet");
@@ -161,3 +162,4 @@ public class MasterActionListBox extends ActionListBox {
newBuilder.build().showDialog(SparrowTerminal.get().getGui());
}
}
+}
