mirror of
https://github.com/ppy/osu.git
synced 2026-05-20 01:02:11 +08:00
simplify the code even more
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user