mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 11:43:01 +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
|
var channel = ChannelTabControl.Items
|
||||||
.Where(tab => !(tab is ChannelSelectorTabItem.ChannelSelectorTabChannel))
|
.Where(tab => !(tab is ChannelSelectorTabItem.ChannelSelectorTabChannel))
|
||||||
.Skip(index)
|
.ElementAtOrDefault(index);
|
||||||
.FirstOrDefault();
|
|
||||||
if (channel != null)
|
if (channel != null)
|
||||||
ChannelTabControl.Current.Value = channel;
|
ChannelTabControl.Current.Value = channel;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user