mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Fix channel tab keyboard shortcut
Filter out the selector tab item at the point of enumerating tabs to fix the regression of the Alt+number key shortcut.
This commit is contained in:
parent
fcd05b5a3c
commit
1553444001
@ -321,8 +321,11 @@ namespace osu.Game.Overlays
|
||||
|
||||
private void selectTab(int index)
|
||||
{
|
||||
var channel = ChannelTabControl.Items.Skip(index).FirstOrDefault();
|
||||
if (channel != null && !(channel is ChannelSelectorTabItem.ChannelSelectorTabChannel))
|
||||
var channel = ChannelTabControl.Items
|
||||
.Where(tab => !(tab is ChannelSelectorTabItem.ChannelSelectorTabChannel))
|
||||
.Skip(index)
|
||||
.FirstOrDefault();
|
||||
if (channel != null)
|
||||
ChannelTabControl.Current.Value = channel;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user