mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fix so token has name displayed in detail pane
This commit is contained in:
@@ -698,11 +698,15 @@ public class CardView extends GameEntityView {
|
||||
public String getName() {
|
||||
return get(TrackableProperty.Name);
|
||||
}
|
||||
void updateName(Card c) {
|
||||
setName(c.getName());
|
||||
}
|
||||
void updateName(CardState c) {
|
||||
setName(c.getName());
|
||||
|
||||
if (CardView.this.getCurrentState() == this) {
|
||||
Card card = Card.get(CardView.this);
|
||||
if (card != null) {
|
||||
CardView.this.updateName(card);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void setName(String name0) {
|
||||
set(TrackableProperty.Name, name0);
|
||||
|
||||
Reference in New Issue
Block a user