1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 16:06:06 +08:00

Merge pull request #8772 from peppy/fix-select-new-from-sub-screen

Fix carousel not correctly updating when selection changes to a new beatmap from a child screen
This commit is contained in:
Dan Balasescu 2020-04-21 15:52:38 +09:00 committed by GitHub
commit b2d766ad2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,6 +224,9 @@ namespace osu.Game.Screens.Select
/// <returns>True if a selection was made, False if it wasn't.</returns>
public bool SelectBeatmap(BeatmapInfo beatmap, bool bypassFilters = true)
{
// ensure that any pending events from BeatmapManager have been run before attempting a selection.
Scheduler.Update();
if (beatmap?.Hidden != false)
return false;