mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Use ElementAtOrDefault
This commit is contained in:
parent
0c305b96d1
commit
e728d2be17
@ -323,8 +323,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
var channel = ChannelTabControl.Items
|
||||
.Where(tab => !(tab is ChannelSelectorTabItem.ChannelSelectorTabChannel))
|
||||
.Skip(index)
|
||||
.FirstOrDefault();
|
||||
.ElementAtOrDefault(index);
|
||||
if (channel != null)
|
||||
ChannelTabControl.Current.Value = channel;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user