Skip to content

Commit

Permalink
Force the UI to update fully when changing addon filters
Browse files Browse the repository at this point in the history
content_resize_request() doesn't appear to return the correct result in this case, even when the number of rows to display has increased.

Fix wesnoth#7270
  • Loading branch information
Pentarctagon committed Feb 4, 2024
1 parent 37a45c3 commit 568ccde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/widgets/listbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void listbox::set_row_shown(const boost::dynamic_bitset<>& shown)
point best_size = generator_->calculate_best_size();
generator_->place(generator_->get_origin(), {std::max(best_size.x, content_visible_area().w), best_size.y});

resize_needed = !content_resize_request();
resize_needed = !content_resize_request(true);
}

if(resize_needed) {
Expand Down

0 comments on commit 568ccde

Please sign in to comment.