mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
Use FirstOrDefault
This commit is contained in:
parent
24db423c4f
commit
fd9218b6d5
@ -86,7 +86,7 @@ namespace osu.Game.Overlays.Music
|
||||
beatmapBacking.BindTo(game.Beatmap);
|
||||
|
||||
filter.Search.OnCommit = (sender, newText) => {
|
||||
var beatmap = list.FirstVisibleSet?.Beatmaps?.ValueAtOrDefault(0);
|
||||
var beatmap = list.FirstVisibleSet?.Beatmaps?.FirstOrDefault();
|
||||
if (beatmap != null) playSpecified(beatmap);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user