Skip to content

Commit

Permalink
Merge pull request #126 from FTBTeam/bugfix/1.21/fix-colapse-button
Browse files Browse the repository at this point in the history
[1.21] Fix Collapse Buttons
  • Loading branch information
desht authored Sep 27, 2024
2 parents e935ab3 + 49ad52e commit f3c4181
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public AbstractGroupedButtonListScreen(Component title) {
.forEach(collapsed::add);

buttonExpandAll = new SimpleButton(topPanel, List.of(Component.translatable("gui.expand_all"), hotkeyTooltip("="), hotkeyTooltip("+")), Icons.UP,
(widget, button) -> toggleAll(true));
buttonCollapseAll = new SimpleButton(topPanel, List.of(Component.translatable("gui.collapse_all"), hotkeyTooltip("-")), Icons.DOWN,
(widget, button) -> toggleAll(false));
buttonCollapseAll = new SimpleButton(topPanel, List.of(Component.translatable("gui.collapse_all"), hotkeyTooltip("-")), Icons.DOWN,
(widget, button) -> toggleAll(true));
}

protected abstract List<GroupData<G, E>> getGroups();
Expand Down

0 comments on commit f3c4181

Please sign in to comment.