Fix issue with edit button visibility

This commit is contained in:
xyzmaker123 2022-01-16 22:00:42 +01:00
parent 808c3ad9d9
commit 1f022b9b89
No known key found for this signature in database
GPG Key ID: 47689699B7B0AAFC

View File

@ -1169,6 +1169,7 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
button2.setStyle(CssTheme.isDarkTheme() ? "-fx-text-fill: white" : "-fx-text-fill: #444444");
button2.setOnAction(e -> onEditOpenOffer(offer));
button2.setManaged(true);
button2.setVisible(true);
} else {
boolean isSellOffer = offer.getDirection() == OfferDirection.SELL;
iconView.setId(isSellOffer ? "image-buy-white" : "image-sell-white");
@ -1186,6 +1187,7 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
button.setTooltip(new Tooltip(Res.get("offerbook.takeOfferButton.tooltip", model.getDirectionLabelTooltip(offer))));
button.setOnAction(e -> onTakeOffer(offer));
button2.setManaged(false);
button2.setVisible(false);
}
if (!myOffer) {