1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Ensure close button component is not stored as a Drawable

This commit is contained in:
Jai Sharma 2022-05-18 01:35:39 +01:00
parent 932442e242
commit 4015042e36

View File

@ -34,7 +34,7 @@ namespace osu.Game.Overlays.Chat.ChannelList
private Box hoverBox = null!;
private Box selectBox = null!;
private OsuSpriteText text = null!;
private Drawable? close;
private ChannelListItemCloseButton? close;
[Resolved]
private Bindable<Channel> selectedChannel { get; set; } = null!;
@ -83,7 +83,7 @@ namespace osu.Game.Overlays.Chat.ChannelList
},
Content = new[]
{
new[]
new Drawable?[]
{
createIcon(),
text = new OsuSpriteText