mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:12:56 +08:00
Simplify queue count text logic
This commit is contained in:
parent
7529d6fc00
commit
e1d22e58bf
@ -32,12 +32,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
QueueItems.BindCollectionChanged((_,__) =>
|
||||
{
|
||||
Text.Text = $"Queue";
|
||||
if (QueueItems.Count != 0)
|
||||
Text.Text += $" ({QueueItems.Count})";
|
||||
}, true);
|
||||
QueueItems.BindCollectionChanged((_, __) => Text.Text = QueueItems.Count > 0 ? $"Queue ({QueueItems.Count})" : "Queue", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user