fix no recent wallets issue
@@ -27,6 +27,7 @@ public class MasterActionListBox extends ActionListBox {
addItem("Wallets", () -> {
ActionListDialogBuilder builder = new ActionListDialogBuilder();
builder.setTitle("Wallets");
+ if(Config.get().getRecentWalletFiles() != null) {
for(int i = 0; i < Config.get().getRecentWalletFiles().size() && i < MAX_RECENT_WALLETS; i++) {
File recentWalletFile = Config.get().getRecentWalletFiles().get(i);
Storage storage = new Storage(recentWalletFile);
@@ -40,6 +41,7 @@ public class MasterActionListBox extends ActionListBox {
builder.addAction(storage.getWalletName(null), new LoadWallet(storage));
}
}
+ }
builder.addAction("Open Wallet...", () -> {
FileDialogBuilder openBuilder = new FileDialogBuilder().setTitle("Open Wallet");
openBuilder.setShowHiddenDirectories(true);
