mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 22:13:02 +00:00
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 e126e5ba3672fe87e7045bce8580ac26b1f536aa)
This commit is contained in:
parent
9e78232e0e
commit
ea643fff18
@ -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…
x
Reference in New Issue
Block a user