Highlight of closed disputes with unread chats

This commit is contained in:
BtcContributor 2021-03-24 19:54:37 +01:00 committed by Christoph Atteneder
parent 5fc33b6521
commit 16d0e2e9d3
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -1364,14 +1364,14 @@ public abstract class DisputeView extends ActivatableView<VBox, Void> {
listener = (observable, oldValue, newValue) -> {
setText(newValue ? Res.get("support.closed") : Res.get("support.open"));
if (getTableRow() != null)
getTableRow().setOpacity(newValue ? 0.4 : 1);
getTableRow().setOpacity(newValue && item.getBadgeCountProperty().get() == 0 ? 0.4 : 1);
};
closedProperty = item.isClosedProperty();
closedProperty.addListener(listener);
boolean isClosed = item.isClosed();
setText(isClosed ? Res.get("support.closed") : Res.get("support.open"));
if (getTableRow() != null)
getTableRow().setOpacity(isClosed ? 0.4 : 1);
getTableRow().setOpacity(isClosed && item.getBadgeCountProperty().get() == 0 ? 0.4 : 1);
} else {
if (closedProperty != null) {
closedProperty.removeListener(listener);