1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +08:00

simplify the code even more

This commit is contained in:
wooster0 2024-01-15 20:58:43 +09:00
parent d5fdd0c0f9
commit 9bc9db9138
2 changed files with 1 additions and 3 deletions

View File

@ -248,7 +248,7 @@ namespace osu.Game.Screens.Ranking
lastFetchCompleted = true;
if (ScorePanelList.IsEmpty)
if (!scores.Any())
{
// This can happen if for example a beatmap that is part of a playlist hasn't been played yet.
VerticalScrollContent.Add(new MessagePlaceholder(LeaderboardStrings.NoRecordsYet));

View File

@ -49,8 +49,6 @@ namespace osu.Game.Screens.Ranking
public bool AllPanelsVisible => flow.All(p => p.IsPresent);
public bool IsEmpty => flow.Count == 0;
/// <summary>
/// The current scroll position.
/// </summary>