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
(cherry-picked from commit e126e5ba36
)
This commit is contained in:
parent
9e78232e0e
commit
ea643fff18
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