mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:52:55 +08:00
Fix user population not immediate on bracket loading
This commit is contained in:
parent
bef0e5cfa1
commit
3b4e02e5c7
@ -152,7 +152,7 @@ namespace osu.Game.Tournament
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(p.Username) || p.Statistics == null)
|
if (string.IsNullOrEmpty(p.Username) || p.Statistics == null)
|
||||||
{
|
{
|
||||||
PopulateUser(p);
|
PopulateUser(p, immediate: true);
|
||||||
addedInfo = true;
|
addedInfo = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -211,7 +211,7 @@ namespace osu.Game.Tournament
|
|||||||
return addedInfo;
|
return addedInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PopulateUser(User user, Action success = null, Action failure = null)
|
public void PopulateUser(User user, Action success = null, Action failure = null, bool immediate = false)
|
||||||
{
|
{
|
||||||
var req = new GetUserRequest(user.Id, Ruleset.Value);
|
var req = new GetUserRequest(user.Id, Ruleset.Value);
|
||||||
|
|
||||||
@ -231,6 +231,9 @@ namespace osu.Game.Tournament
|
|||||||
failure?.Invoke();
|
failure?.Invoke();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (immediate)
|
||||||
|
API.Perform(req);
|
||||||
|
else
|
||||||
API.Queue(req);
|
API.Queue(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user