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:
parent
d5fdd0c0f9
commit
9bc9db9138
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user