mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 23:33:23 +08:00
Ensure latest stats are cleared on successful profile fetch
This commit is contained in:
parent
fd9110a61e
commit
3c26016b61
@ -77,6 +77,7 @@ namespace osu.Game.Online.Solo
|
||||
var userRequest = new GetUsersRequest(new[] { localUser.OnlineID });
|
||||
userRequest.Success += response => Schedule(() =>
|
||||
{
|
||||
latestStatistics.Clear();
|
||||
foreach (var rulesetStats in response.Users.Single().RulesetsStatistics)
|
||||
latestStatistics.Add(rulesetStats.Key, rulesetStats.Value);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user