Revert DI usage of ChannelSelectorState in favour of directly binding BindableBool SelectorActive

This commit is contained in:
Jai Sharma
2022-04-20 21:05:33 +01:00
parent e596c9d171
commit 5319bce772
4 changed files with 12 additions and 23 deletions

View File

@ -56,6 +56,7 @@ namespace osu.Game.Overlays.Chat.ChannelList
new ChannelListSelector
{
Margin = new MarginPadding { Bottom = 10 },
SelectorActive = { BindTarget = SelectorActive },
},
privateChannelFlow = new ChannelListItemFlow("DIRECT MESSAGES"),
},
@ -72,6 +73,7 @@ namespace osu.Game.Overlays.Chat.ChannelList
ChannelListItem item = new ChannelListItem(channel);
item.OnRequestSelect += chan => OnRequestSelect?.Invoke(chan);
item.OnRequestLeave += chan => OnRequestLeave?.Invoke(chan);
item.SelectorActive.BindTarget = SelectorActive;
ChannelListItemFlow flow = getFlowForChannel(channel);
channelMap.Add(channel, item);
@ -130,10 +132,4 @@ namespace osu.Game.Overlays.Chat.ChannelList
}
}
}
public enum ChannelSelectorState
{
Visibile,
Hidden,
}
}