mirror of
https://github.com/ppy/osu
synced 2025-02-20 12:26:59 +00:00
Merge pull request #16522 from peppy/detach-before-hidden-check
Detach beatmap set before checking hidden state
This commit is contained in:
commit
4b127d5029
@ -677,11 +677,11 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private CarouselBeatmapSet createCarouselSet(BeatmapSetInfo beatmapSet)
|
||||
{
|
||||
beatmapSet = beatmapSet.Detach();
|
||||
|
||||
if (beatmapSet.Beatmaps.All(b => b.Hidden))
|
||||
return null;
|
||||
|
||||
beatmapSet = beatmapSet.Detach();
|
||||
|
||||
var set = new CarouselBeatmapSet(beatmapSet)
|
||||
{
|
||||
GetRecommendedBeatmap = beatmaps => GetRecommendedBeatmap?.Invoke(beatmaps)
|
||||
|
Loading…
Reference in New Issue
Block a user