Add a note about hidden beatmap check

This commit is contained in:
Dean Herbert 2022-01-20 17:50:17 +09:00
parent 1dabf6c8a5
commit 3ba712703b
1 changed files with 5 additions and 0 deletions

View File

@ -713,6 +713,11 @@ private CarouselBeatmapSet createCarouselSet(BeatmapSetInfo beatmapSet)
{
beatmapSet = beatmapSet.Detach();
// This can be moved to the realm query if required using:
// .Filter("DeletePending == false && Protected == false && ALL Beatmaps.Hidden == false")
//
// As long as we are detaching though, it makes more sense to do it here as adding to the realm query has an overhead
// as seen at https://github.com/realm/realm-dotnet/discussions/2773#discussioncomment-2004275.
if (beatmapSet.Beatmaps.All(b => b.Hidden))
return null;