mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 07:33:09 +08:00
Use All instead of ToList Any
Co-Authored-By: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
87854fc4fa
commit
2c27894527
@ -253,7 +253,7 @@ namespace osu.Game.Screens.Select
|
|||||||
/// <param name="skipDifficulties">Whether to skip individual difficulties and only increment over full groups.</param>
|
/// <param name="skipDifficulties">Whether to skip individual difficulties and only increment over full groups.</param>
|
||||||
public void SelectNext(int direction = 1, bool skipDifficulties = true)
|
public void SelectNext(int direction = 1, bool skipDifficulties = true)
|
||||||
{
|
{
|
||||||
if (!beatmapSets.Where(s => !s.Filtered.Value).ToList().Any())
|
if (beatmapSets.All(s => !s.Filtered.Value))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (skipDifficulties)
|
if (skipDifficulties)
|
||||||
|
Loading…
Reference in New Issue
Block a user