mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Merge pull request #3796 from ripcurlx/fix-rendering-issue-of-disputes
Remove listener before setting a new one
This commit is contained in:
commit
737a4190f1
1 changed files with 4 additions and 0 deletions
|
@ -892,6 +892,10 @@ public abstract class DisputeView extends ActivatableView<VBox, Void> {
|
|||
public void updateItem(final Dispute item, boolean empty) {
|
||||
super.updateItem(item, empty);
|
||||
if (item != null && !empty) {
|
||||
if (closedProperty != null) {
|
||||
closedProperty.removeListener(listener);
|
||||
}
|
||||
|
||||
listener = (observable, oldValue, newValue) -> {
|
||||
setText(newValue ? Res.get("support.closed") : Res.get("support.open"));
|
||||
if (getTableRow() != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue