mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 09:42:54 +08:00
Fix nullref
This commit is contained in:
parent
cebeb0a219
commit
c58fe4f4ff
@ -68,11 +68,10 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
|
|
||||||
var clockRate = AdjustableClock.Rate;
|
var clockRate = AdjustableClock.Rate;
|
||||||
|
|
||||||
sliderbar.Bindable.BindValueChanged(multiplier =>
|
// can't trigger this line instantly as the underlying clock may not be ready to accept adjustments yet.
|
||||||
{
|
sliderbar.Bindable.ValueChanged += multiplier => AdjustableClock.Rate = clockRate * multiplier;
|
||||||
multiplierText.Text = $"{multiplier:0.0}x";
|
|
||||||
AdjustableClock.Rate = clockRate * multiplier;
|
sliderbar.Bindable.BindValueChanged(multiplier => multiplierText.Text = $"{multiplier:0.0}x", true);
|
||||||
}, true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user