mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Add a note about hidden beatmap check
This commit is contained in:
@ -713,6 +713,11 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
beatmapSet = beatmapSet.Detach();
|
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))
|
if (beatmapSet.Beatmaps.All(b => b.Hidden))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user