1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Fix endless loading state part 2

This commit is contained in:
EVAST9919 2019-06-04 04:04:33 +03:00
parent 2c71371282
commit d5a2ebf79f

View File

@ -38,6 +38,8 @@ namespace osu.Game.Overlays.Profile.Sections
isLoading = value;
Enabled.Value = !isLoading;
if (value)
{
loading.FadeIn(fade_duration, Easing.OutQuint);
@ -106,11 +108,14 @@ namespace osu.Game.Overlays.Profile.Sections
protected override bool OnClick(ClickEvent e)
{
if (IsLoading)
return true;
var clickResult = base.OnClick(e);
IsLoading = true;
return base.OnClick(e);
if (IsLoading)
return clickResult;
IsLoading |= clickResult;
return clickResult;
}
private class ChevronIcon : SpriteIcon