1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 13:27:23 +08:00

Instantiate channel in tab item

This commit is contained in:
Paul Teng 2019-05-12 06:26:03 -04:00
parent d53fb9a5c8
commit 8957ad5a7e
2 changed files with 3 additions and 3 deletions

View File

@ -13,8 +13,8 @@ namespace osu.Game.Overlays.Chat.Tabs
public override bool IsSwitchable => false; public override bool IsSwitchable => false;
public ChannelSelectorTabItem(Channel value) public ChannelSelectorTabItem()
: base(value) : base(new ChannelSelectorTabChannel())
{ {
Depth = float.MaxValue; Depth = float.MaxValue;
Width = 45; Width = 45;

View File

@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Chat.Tabs
Margin = new MarginPadding(10), Margin = new MarginPadding(10),
}); });
AddTabItem(selectorTab = new ChannelSelectorTabItem(new ChannelSelectorTabChannel())); AddTabItem(selectorTab = new ChannelSelectorTabItem());
ChannelSelectorActive.BindTo(selectorTab.Active); ChannelSelectorActive.BindTo(selectorTab.Active);
} }