1
0
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:
Salman Ahmed 2021-03-04 15:00:46 +03:00
parent fe64c3dbd4
commit 132fcda089

View File

@ -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 =>