mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Ensure only run once
This commit is contained in:
parent
fe15b26bd2
commit
ad6af1d9b7
@ -72,7 +72,7 @@ namespace osu.Game.Overlays
|
|||||||
apiState.BindValueChanged(state => Schedule(() =>
|
apiState.BindValueChanged(state => Schedule(() =>
|
||||||
{
|
{
|
||||||
if (state.NewValue == APIState.Online && user != null)
|
if (state.NewValue == APIState.Online && user != null)
|
||||||
fetchAndSetContent();
|
Scheduler.AddOnce(fetchAndSetContent);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ namespace osu.Game.Overlays
|
|||||||
ruleset = userRuleset;
|
ruleset = userRuleset;
|
||||||
|
|
||||||
Show();
|
Show();
|
||||||
fetchAndSetContent();
|
Scheduler.AddOnce(fetchAndSetContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fetchAndSetContent()
|
private void fetchAndSetContent()
|
||||||
|
Loading…
Reference in New Issue
Block a user