1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:47:52 +08:00

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

View File

@ -713,6 +713,11 @@ namespace osu.Game.Screens.Select
{
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;