1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix potentially thread-unsafe LocalUser usage

This commit is contained in:
Dean Herbert 2022-08-09 16:01:04 +09:00
parent 5d8bd1de28
commit 32852e5b21

View File

@ -89,11 +89,11 @@ namespace osu.Game.Overlays.Toolbar
StateContainer = login;
}
private void userChanged(ValueChangedEvent<APIUser> user)
private void userChanged(ValueChangedEvent<APIUser> user) => Schedule(() =>
{
Text = user.NewValue.Username;
avatar.User = user.NewValue;
}
});
private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule(() =>
{