mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:17:23 +08:00
Add a note about hidden beatmap check
This commit is contained in:
parent
1dabf6c8a5
commit
3ba712703b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user