Browse Source

minor fixes

terminal
Craig Raw 3 years ago
parent
commit
b6f047d382
  1. 2
      src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java
  2. 4
      src/main/java/com/sparrowwallet/sparrow/whirlpool/dataSource/SparrowIndexHandler.java

2
src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java

@ -123,7 +123,7 @@ public class UtxosController extends WalletFormController implements Initializab
AppServices.onlineProperty().addListener(new WeakChangeListener<>(mixingOnlineListener));
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);
updateButtons(Config.get().getBitcoinUnit());
});

4
src/main/java/com/sparrowwallet/sparrow/whirlpool/dataSource/SparrowIndexHandler.java

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

Loading…
Cancel
Save