Refactor: add TODOs

This commit is contained in:
chimp1984 2020-09-25 21:43:56 -05:00
parent 6af9cb3dfe
commit 5d312ae1ba
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,9 @@ public class TradePresentation {
@Inject
public TradePresentation(TradeManager tradeManager) {
// TODO replace for tradeManager.getTradesAsObservableList() once tradableList is refactored to a final field
// (part of the persistence refactor PR)
tradeManager.getNumPendingTrades().addListener((observable, oldValue, newValue) -> {
long numPendingTrades = (long) newValue;
if (numPendingTrades > 0)

View File

@ -300,6 +300,8 @@ public class TradeManager implements PersistedDataHost {
trade.updateDepositTxFromWallet();
}
// TODO Remove once tradableList is refactored to a final field
// (part of the persistence refactor PR)
private void onTradesChanged() {
this.numPendingTrades.set(getTradesAsObservableList().size());
}