mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Revert DI usage of ChannelSelectorState
in favour of directly binding BindableBool
SelectorActive
This commit is contained in:
@ -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,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user