mirror of
https://github.com/ppy/osu
synced 2025-01-06 06:10:04 +00:00
Instantiate channel in tab item
This commit is contained in:
parent
d53fb9a5c8
commit
8957ad5a7e
@ -13,8 +13,8 @@ namespace osu.Game.Overlays.Chat.Tabs
|
||||
|
||||
public override bool IsSwitchable => false;
|
||||
|
||||
public ChannelSelectorTabItem(Channel value)
|
||||
: base(value)
|
||||
public ChannelSelectorTabItem()
|
||||
: base(new ChannelSelectorTabChannel())
|
||||
{
|
||||
Depth = float.MaxValue;
|
||||
Width = 45;
|
||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Chat.Tabs
|
||||
Margin = new MarginPadding(10),
|
||||
});
|
||||
|
||||
AddTabItem(selectorTab = new ChannelSelectorTabItem(new ChannelSelectorTabChannel()));
|
||||
AddTabItem(selectorTab = new ChannelSelectorTabItem());
|
||||
|
||||
ChannelSelectorActive.BindTo(selectorTab.Active);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user