mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 03:22:55 +08:00
Fix potentially thread-unsafe LocalUser
usage
This commit is contained in:
parent
5d8bd1de28
commit
32852e5b21
@ -89,11 +89,11 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
StateContainer = login;
|
StateContainer = login;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void userChanged(ValueChangedEvent<APIUser> user)
|
private void userChanged(ValueChangedEvent<APIUser> user) => Schedule(() =>
|
||||||
{
|
{
|
||||||
Text = user.NewValue.Username;
|
Text = user.NewValue.Username;
|
||||||
avatar.User = user.NewValue;
|
avatar.User = user.NewValue;
|
||||||
}
|
});
|
||||||
|
|
||||||
private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule(() =>
|
private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user