Skip to content

Commit

Permalink
FAForever#3023 address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
obydog002 committed Jan 5, 2024
1 parent 335e3bd commit 4a05a56
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class PlayerCardController extends NodeController<Node> {

@Override
protected void onInitialize() {
JavaFxUtil.bindManagedToVisible(factionIcon, foeIconText, factionImage, friendIconText, countryImageView, noteIcon);
JavaFxUtil.bindManagedToVisible(avatarStackPane, factionIcon, foeIconText, factionImage, friendIconText, countryImageView, noteIcon);
countryImageView.visibleProperty().bind(countryImageView.imageProperty().isNotNull());
avatarImageView.visibleProperty().bind(avatarImageView.imageProperty().isNotNull());

Expand Down Expand Up @@ -218,8 +218,7 @@ private Integer getRatingChange(LeaderboardRatingJournalBean ratingJournal) {

public void removeAvatar() {
this.avatarImageView.managedProperty().set(false);
this.avatarStackPane.managedProperty().set(false);
this.avatarStackPane.visibleProperty().set(false);
this.avatarStackPane.setVisible(false);
}

public PlayerBean getPlayer() {
Expand Down

0 comments on commit 4a05a56

Please sign in to comment.