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