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:
parent
2e67685762
commit
edeeefea3b
@ -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)
|
||||
{
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user