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:
parent
5e5fbc496e
commit
5a5629eb5a
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user