minor fixes

This commit is contained in:
Craig Raw 2021-09-02 15:26:16 +02:00
parent 8f63d89be8
commit b6f047d382
2 changed files with 3 additions and 3 deletions

View file

@ -123,7 +123,7 @@ public class UtxosController extends WalletFormController implements Initializab
AppServices.onlineProperty().addListener(new WeakChangeListener<>(mixingOnlineListener)); AppServices.onlineProperty().addListener(new WeakChangeListener<>(mixingOnlineListener));
utxosTable.getSelectionModel().getSelectedIndices().addListener((ListChangeListener<Integer>) c -> { utxosTable.getSelectionModel().getSelectedIndices().addListener((ListChangeListener<Integer>) c -> {
List<Entry> selectedEntries = utxosTable.getSelectionModel().getSelectedCells().stream().map(tp -> tp.getTreeItem().getValue()).collect(Collectors.toList()); List<Entry> selectedEntries = utxosTable.getSelectionModel().getSelectedCells().stream().filter(tp -> tp.getTreeItem() != null).map(tp -> tp.getTreeItem().getValue()).collect(Collectors.toList());
utxosChart.select(selectedEntries); utxosChart.select(selectedEntries);
updateButtons(Config.get().getBitcoinUnit()); updateButtons(Config.get().getBitcoinUnit());
}); });

View file

@ -63,8 +63,8 @@ public class SparrowIndexHandler extends AbstractIndexHandler {
} else if(walletNode.getKeyPurpose() == KeyPurpose.CHANGE) { } else if(walletNode.getKeyPurpose() == KeyPurpose.CHANGE) {
wallet.getMixConfig().setChangeIndex(index); wallet.getMixConfig().setChangeIndex(index);
} }
}
EventManager.get().post(new WalletMixConfigChangedEvent(wallet)); EventManager.get().post(new WalletMixConfigChangedEvent(wallet));
} }
} }
}