Preferences: Keep the acceleration speed slider enabled even when the checkbox is disabled.
Apparently, this also causes the slider's value to be saved when dismissing the dialog with the checkbox disabled. Fixes #2741
This commit is contained in:
parent
2771582222
commit
e126e5ba36
1 changed files with 1 additions and 2 deletions
|
@ -359,8 +359,7 @@ void preferences_dialog::post_build(window& window)
|
|||
scroll_speed, set_scroll_speed);
|
||||
|
||||
/* ACCELERATED SPEED */
|
||||
register_bool("turbo_toggle", true, turbo, set_turbo,
|
||||
[&](widget& w) { disable_widget_on_toggle<slider>(window, w, "turbo_slider"); }, true);
|
||||
register_bool("turbo_toggle", true, turbo, set_turbo);
|
||||
|
||||
const auto accl_load = [this]()->int {
|
||||
return std::distance(accl_speeds_.begin(), std::find(accl_speeds_.begin(), accl_speeds_.end(), turbo_speed()));
|
||||
|
|
Loading…
Add table
Reference in a new issue