mirror of https://github.com/ppy/osu
Method rename
This commit is contained in:
parent
da294c9605
commit
e5308b6247
|
@ -62,7 +62,7 @@ protected override void AddTabItem(TabItem<Channel> item, bool addToDropdown = t
|
|||
SelectTab(item);
|
||||
}
|
||||
|
||||
protected override TabItem<Channel> CreateTabItem(Channel value) => new ChannelTabItem(value) { OnRequestClose = onTabClose };
|
||||
protected override TabItem<Channel> CreateTabItem(Channel value) => new ChannelTabItem(value) { OnRequestClose = tabCloseRequested };
|
||||
|
||||
protected override void SelectTab(TabItem<Channel> tab)
|
||||
{
|
||||
|
@ -77,7 +77,7 @@ protected override void SelectTab(TabItem<Channel> tab)
|
|||
base.SelectTab(tab);
|
||||
}
|
||||
|
||||
private void onTabClose(TabItem<Channel> tab)
|
||||
private void tabCloseRequested(TabItem<Channel> tab)
|
||||
{
|
||||
int totalTabs = TabContainer.Count - 1; // account for selectorTab
|
||||
int currentIndex = MathHelper.Clamp(TabContainer.IndexOf(tab), 1, totalTabs);
|
||||
|
|
Loading…
Reference in New Issue