mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Fix endless loading state part 2
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user