mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 06:33:17 +08:00
Fix song select potentially starting play before the carousel (and bindables) have been initialised
This commit is contained in:
parent
4789aa81cb
commit
a10e43410a
@ -300,6 +300,10 @@ namespace osu.Game.Screens.Select
|
|||||||
/// <param name="performStartAction">Whether to trigger <see cref="OnStart"/>.</param>
|
/// <param name="performStartAction">Whether to trigger <see cref="OnStart"/>.</param>
|
||||||
public void FinaliseSelection(BeatmapInfo beatmap = null, bool performStartAction = true)
|
public void FinaliseSelection(BeatmapInfo beatmap = null, bool performStartAction = true)
|
||||||
{
|
{
|
||||||
|
// This is very important as we have not yet bound to screen-level bindables before the carousel load is completed.
|
||||||
|
if (!Carousel.BeatmapSetsLoaded)
|
||||||
|
return;
|
||||||
|
|
||||||
// if we have a pending filter operation, we want to run it now.
|
// if we have a pending filter operation, we want to run it now.
|
||||||
// it could change selection (ie. if the ruleset has been changed).
|
// it could change selection (ie. if the ruleset has been changed).
|
||||||
Carousel.FlushPendingFilterOperations();
|
Carousel.FlushPendingFilterOperations();
|
||||||
|
Loading…
Reference in New Issue
Block a user