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

Select recommended beatmap if last selection is filtered

This commit is contained in:
Endrik Tombak 2020-12-03 23:13:14 +02:00
parent 1d92800761
commit c25e2c3dd5

View File

@ -45,7 +45,7 @@ namespace osu.Game.Screens.Select.Carousel
protected override CarouselItem GetNextToSelect()
{
if (LastSelected == null)
if (LastSelected == null || LastSelected.Filtered.Value)
{
if (GetRecommendedBeatmap?.Invoke(Children.OfType<CarouselBeatmap>().Where(b => !b.Filtered.Value).Select(b => b.Beatmap)) is BeatmapInfo recommended)
return Children.OfType<CarouselBeatmap>().First(b => b.Beatmap == recommended);