mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Fix nullref
This commit is contained in:
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user