mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
subscribe to dispute state property to update dispute view
This commit is contained in:
parent
66a152c888
commit
dee5a11e63
1 changed files with 1 additions and 1 deletions
|
@ -1352,7 +1352,7 @@ public abstract class DisputeView extends ActivatableView<VBox, Void> {
|
||||||
// subscribe to trade's dispute state
|
// subscribe to trade's dispute state
|
||||||
Trade trade = tradeManager.getTrade(item.getTradeId());
|
Trade trade = tradeManager.getTrade(item.getTradeId());
|
||||||
if (trade == null) log.warn("Dispute's trade is null for trade {}", item.getTradeId());
|
if (trade == null) log.warn("Dispute's trade is null for trade {}", item.getTradeId());
|
||||||
else subscription = EasyBind.subscribe(item.isClosedProperty(), closedProp -> setText(getDisputeStateText(item)));
|
else subscription = EasyBind.subscribe(trade.disputeStateProperty(), disputeState -> setText(getDisputeStateText(item)));
|
||||||
} else {
|
} else {
|
||||||
if (closedProperty != null) {
|
if (closedProperty != null) {
|
||||||
closedProperty.removeListener(listener);
|
closedProperty.removeListener(listener);
|
||||||
|
|
Loading…
Reference in a new issue