Skip to content

Commit

Permalink
fix: Fix invalid max_value in PaginatorSelect after page update
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Oct 23, 2024
1 parent 1203d20 commit c110a4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hoyo_buddy/ui/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,13 @@ def update_page(self) -> bool:
for option in self.options:
option.default = False
self.update_options_defaults()

for option in self.options:
if option.value in {PREV_PAGE.value, NEXT_PAGE.value}:
option.default = False

self.max_values = min(self._max_values, len(self.options))

self.translate(self.view.locale, self.view.translator)
return changed

Expand Down

0 comments on commit c110a4e

Please sign in to comment.