From 5a5629eb5a50b6d5d4987167ff564403d49835eb Mon Sep 17 00:00:00 2001 From: hwabis Date: Fri, 18 Mar 2022 20:47:45 -0400 Subject: [PATCH] (works now) use BindValueChanged to set the Queue text --- .../Match/Playlist/MultiplayerPlaylistTabControl.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/osu.Game/Screens/OnlinePlay/Multiplayer/Match/Playlist/MultiplayerPlaylistTabControl.cs b/osu.Game/Screens/OnlinePlay/Multiplayer/Match/Playlist/MultiplayerPlaylistTabControl.cs index a459ec6f80..f0a51eb5e1 100644 --- a/osu.Game/Screens/OnlinePlay/Multiplayer/Match/Playlist/MultiplayerPlaylistTabControl.cs +++ b/osu.Game/Screens/OnlinePlay/Multiplayer/Match/Playlist/MultiplayerPlaylistTabControl.cs @@ -24,14 +24,11 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist private class QueueTabItem : OsuTabItem { - private Bindable count; - public QueueTabItem(MultiplayerPlaylistDisplayMode value, Bindable queueListCount) : base(value) { - count = new Bindable(); - count.BindTo(queueListCount); - Text.Text += " (" + count.Value + ")"; + queueListCount.BindValueChanged( + _ => Text.Text = "Queue (" + queueListCount.Value + ")", true); } } }