Use Any() instead of Count()

This commit is contained in:
Dean Herbert
2018-06-08 20:54:09 +09:00
parent 064e8190be
commit ecc0f5e575

View File

@ -39,7 +39,7 @@ namespace osu.Game.Beatmaps.Drawables
// initial value
if (set.OnlineBeatmapSetID != null)
Downloaded.Value = beatmaps.QueryBeatmapSets(s => s.OnlineBeatmapSetID == set.OnlineBeatmapSetID && !s.DeletePending).Count() != 0;
Downloaded.Value = beatmaps.QueryBeatmapSets(s => s.OnlineBeatmapSetID == set.OnlineBeatmapSetID && !s.DeletePending).Any();
}
protected override void Dispose(bool isDisposing)