Skip to content

Commit

Permalink
Merge pull request #119 from FTBTeam/bugfix/1.21/update-title
Browse files Browse the repository at this point in the history
[1.21.1] Call updateTitle on button clicked
  • Loading branch information
desht authored Aug 21, 2024
2 parents 4a0e323 + d353ba3 commit dcdd84a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public ToggleableButton(Panel panel, boolean defaultState, Icon enabled, Icon di
this.setConsumer((widget, button) -> {
this.state = !this.state;
widget.setIcon(this.state ? enabled : disabled);
updateTitle();
toggleableCallback.onClicked(widget, this.state);
});
this.enabledText = Component.translatable("ftblibrary.gui.enabled").withStyle(ChatFormatting.GREEN);
Expand Down

0 comments on commit dcdd84a

Please sign in to comment.