mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 14:13:28 +00:00
GUI2/Multimenu Button: fixed maximum_shown defaulting to 0 instead of 1
Fixes the campaign selection dialog's modification dropdown saying "1 other" for the first mod you select. (cherry-picked from commit f54b3f722515c94a96d8ba1694e65ae4697c1c01)
This commit is contained in:
parent
025af47181
commit
32f0f0e03a
@ -324,7 +324,7 @@ namespace implementation
|
||||
|
||||
builder_multimenu_button::builder_multimenu_button(const config& cfg)
|
||||
: builder_styled_widget(cfg)
|
||||
, max_shown_(cfg["maximum_shown"])
|
||||
, max_shown_(cfg["maximum_shown"].to_unsigned(1))
|
||||
, options_()
|
||||
{
|
||||
for(const auto& option : cfg.child_range("option")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user