1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 17:27:24 +08:00

Revert "simplify the code even more"

This reverts commit 9bc9db9138.
This commit is contained in:
Bartłomiej Dach 2024-01-15 18:47:49 +01:00
parent 8a839f64ed
commit 9d2c82452c
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -248,7 +248,7 @@ namespace osu.Game.Screens.Ranking
lastFetchCompleted = true;
if (!scores.Any())
if (ScorePanelList.IsEmpty)
{
// 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,6 +49,8 @@ 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>