mirror of
https://github.com/ppy/osu
synced 2024-12-15 19:36:34 +00:00
Fix initial beatmap selection potentially being incorrect
This commit is contained in:
parent
5aee8f80bb
commit
33f8c8419a
@ -160,13 +160,8 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
public void SelectBeatmap(BeatmapInfo beatmap)
|
||||
{
|
||||
if (beatmap == null || beatmap.Hidden)
|
||||
{
|
||||
SelectNext();
|
||||
if (beatmap?.Hidden != false)
|
||||
return;
|
||||
}
|
||||
|
||||
if (beatmap == SelectedBeatmap) return;
|
||||
|
||||
foreach (CarouselBeatmapSet group in beatmapSets)
|
||||
{
|
||||
|
@ -197,7 +197,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
Beatmap.ValueChanged += b =>
|
||||
{
|
||||
if (!IsCurrentScreen) return;
|
||||
if (IsCurrentScreen)
|
||||
carousel.SelectBeatmap(b?.BeatmapInfo);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user