mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 10:22:56 +08:00
Force config sensitivity value to local setting bindable
Re-enable the local bindable to update the sensitivity value then change back to whatever state it was in previously.
This commit is contained in:
parent
fe64c3dbd4
commit
132fcda089
@ -76,7 +76,15 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
configSensitivity.BindValueChanged(val => localSensitivity.Value = val.NewValue, true);
|
||||
configSensitivity.BindValueChanged(val =>
|
||||
{
|
||||
var disabled = localSensitivity.Disabled;
|
||||
|
||||
localSensitivity.Disabled = false;
|
||||
localSensitivity.Value = val.NewValue;
|
||||
localSensitivity.Disabled = disabled;
|
||||
}, true);
|
||||
|
||||
localSensitivity.BindValueChanged(val => configSensitivity.Value = val.NewValue);
|
||||
|
||||
windowMode.BindValueChanged(mode =>
|
||||
|
Loading…
Reference in New Issue
Block a user