mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Fix nullref
This commit is contained in:
@ -68,11 +68,10 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
||||
|
||||
var clockRate = AdjustableClock.Rate;
|
||||
|
||||
sliderbar.Bindable.BindValueChanged(multiplier =>
|
||||
{
|
||||
multiplierText.Text = $"{multiplier:0.0}x";
|
||||
AdjustableClock.Rate = clockRate * multiplier;
|
||||
}, true);
|
||||
// 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;
|
||||
|
||||
sliderbar.Bindable.BindValueChanged(multiplier => multiplierText.Text = $"{multiplier:0.0}x", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user