1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Use FirstOrDefault

This commit is contained in:
Dean Herbert 2017-05-12 20:48:25 +09:00
parent 24db423c4f
commit fd9218b6d5

View File

@ -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);
};
}