mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Refactor: add TODOs
This commit is contained in:
parent
6af9cb3dfe
commit
5d312ae1ba
@ -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)
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user