fix occasional miscolored buttons to remove or edit my offer

This commit is contained in:
woodser 2024-12-21 08:44:54 -05:00
parent 42ede83ca2
commit fdee044023

View file

@ -1069,6 +1069,10 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
return new TableCell<>() {
OfferFilterService.Result canTakeOfferResult = null;
@Override
public void updateItem(final OfferBookListItem item, boolean empty) {
super.updateItem(item, empty);
final ImageView iconView = new ImageView();
final AutoTooltipButton button = new AutoTooltipButton();
@ -1098,10 +1102,6 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
HBox.setHgrow(button2, Priority.ALWAYS);
}
@Override
public void updateItem(final OfferBookListItem item, boolean empty) {
super.updateItem(item, empty);
TableRow<OfferBookListItem> tableRow = getTableRow();
if (item != null && !empty) {
Offer offer = item.getOffer();