1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 17:07:40 +08:00

Fix missing text has been shown before api request has been completed

This commit is contained in:
EVAST9919 2017-11-08 20:42:24 +03:00
parent 2e67685762
commit edeeefea3b
3 changed files with 12 additions and 6 deletions

View File

@ -41,9 +41,11 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
ShowMoreButton.FadeTo(sets.Count == ItemsPerPage ? 1 : 0);
ShowMoreLoading.Hide();
if (!sets.Any()) return;
MissingText.Hide();
if (!sets.Any())
{
MissingText.Show();
return;
}
foreach (var s in sets)
{

View File

@ -74,7 +74,8 @@ namespace osu.Game.Overlays.Profile.Sections
MissingText = new OsuSpriteText
{
TextSize = 14,
Text = missing
Text = missing,
Alpha = 0,
},
};
}
@ -94,7 +95,6 @@ namespace osu.Game.Overlays.Profile.Sections
VisiblePages = 0;
ItemsContainer.Clear();
ShowMoreButton.Hide();
MissingText.Show();
if (newUser != null)
ShowMore();

View File

@ -41,7 +41,11 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
ShowMoreButton.FadeTo(scores.Count == ItemsPerPage ? 1 : 0);
ShowMoreLoading.Hide();
if (!scores.Any()) return;
if (!scores.Any())
{
MissingText.Show();
return;
}
MissingText.Hide();