configuration: Use shorter constructor as needed

Reduces some confusion hopefully, since some parameters specified were not
specific to the setting in question.
This commit is contained in:
lat9nq
2023-06-15 16:45:42 -04:00
parent 6935332cba
commit a7ee9d999f
3 changed files with 9 additions and 10 deletions

View File

@ -253,8 +253,7 @@ void ConfigureGraphics::Setup() {
// speed_limit needs a checkbox to set use_speed_limit, as well as a spinbox
return new ConfigurationShared::Widget(
setting, translations, combobox_translations, this, runtime_lock, apply_funcs,
ConfigurationShared::RequestType::SpinBox, true, 1.0f,
&Settings::values.use_speed_limit,
&Settings::values.use_speed_limit, ConfigurationShared::RequestType::SpinBox,
tr("%", "Limit speed percentage (e.g. 50%)"));
} else {
return new ConfigurationShared::Widget(setting, translations, combobox_translations,