Skip to content

Commit

Permalink
fix: max button shouldn't become active when not needed yet after res…
Browse files Browse the repository at this point in the history
…izing
  • Loading branch information
raoulvdberge committed Dec 27, 2024
1 parent 19889b6 commit c1457c6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ protected void init() {
getMenu().loadCurrentRequest();
}

final boolean wasActive = maxButton == null || maxButton.active;
maxButton = Button.builder(MAX, this::requestMaxAmount)
.size(22, 15)
.pos(leftPos + 185 - 1, topPos + 49 - 1)
.build();
maxButton.active = wasActive;
addRenderableWidget(maxButton);

getExclusionZones().add(new Rect2i(
Expand Down

0 comments on commit c1457c6

Please sign in to comment.