1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 08:12:56 +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 Bindable<int> count;
public QueueTabItem(MultiplayerPlaylistDisplayMode value, Bindable<int> queueListCount)
: base(value)
{
count = new Bindable<int>();
count.BindTo(queueListCount);
Text.Text += " (" + count.Value + ")";
queueListCount.BindValueChanged(
_ => Text.Text = "Queue (" + queueListCount.Value + ")", true);
}
}
}