1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 13:33:03 +08:00

(works now) use BindValueChanged to set the Queue text

This commit is contained in:
hwabis 2022-03-18 20:47:45 -04:00
parent 5e5fbc496e
commit 5a5629eb5a

View File

@ -24,14 +24,11 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist
private class QueueTabItem : OsuTabItem private class QueueTabItem : OsuTabItem
{ {
private Bindable<int> count;
public QueueTabItem(MultiplayerPlaylistDisplayMode value, Bindable<int> queueListCount) public QueueTabItem(MultiplayerPlaylistDisplayMode value, Bindable<int> queueListCount)
: base(value) : base(value)
{ {
count = new Bindable<int>(); queueListCount.BindValueChanged(
count.BindTo(queueListCount); _ => Text.Text = "Queue (" + queueListCount.Value + ")", true);
Text.Text += " (" + count.Value + ")";
} }
} }
} }