1
0
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:
Salman Ahmed 2022-03-20 06:25:07 +03:00
parent 7529d6fc00
commit e1d22e58bf

View File

@ -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);
}
}
}