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.
This commit is contained in:
parent
23740ea3cf
commit
f54b3f7225
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,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…
Add table
Reference in a new issue