mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Merge pull request #11083 from LittleEndu/recommend-if-filtered
Select recommended beatmap if last selection is filtered
This commit is contained in:
commit
48c42e4247
@ -45,7 +45,7 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
|
|
||||||
protected override CarouselItem GetNextToSelect()
|
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)
|
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);
|
return Children.OfType<CarouselBeatmap>().First(b => b.Beatmap == recommended);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user