1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Minor adjustments

This commit is contained in:
Andrei Zavatski 2019-07-14 16:37:05 +03:00
parent ecf0e62484
commit 19680c8df8
2 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,7 @@ namespace osu.Game.Tests.Visual.SongSelect
} }
}); });
APILegacyUserTopScoreInfo[] scores = new[] var scores = new APILegacyUserTopScoreInfo[]
{ {
new APILegacyUserTopScoreInfo new APILegacyUserTopScoreInfo
{ {

View File

@ -63,13 +63,14 @@ namespace osu.Game.Screens.Select.Details
private void onScoreChanged(APILegacyUserTopScoreInfo score) private void onScoreChanged(APILegacyUserTopScoreInfo score)
{ {
scoreContainer.Clear();
if (score != null) if (score != null)
{ {
scoreContainer.Clear();
scoreContainer.Add(new LeaderboardScore(score.Score, score.Position)); scoreContainer.Add(new LeaderboardScore(score.Score, score.Position));
Show(); Show();
} }
else
Hide();
} }
protected override void PopIn() protected override void PopIn()