mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Simplify queue count text logic
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user