mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:17:23 +08: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,8 +197,8 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
Beatmap.ValueChanged += b =>
|
||||
{
|
||||
if (!IsCurrentScreen) return;
|
||||
carousel.SelectBeatmap(b?.BeatmapInfo);
|
||||
if (IsCurrentScreen)
|
||||
carousel.SelectBeatmap(b?.BeatmapInfo);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user