mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Fix unsafe usage of APIAccess.LocalUser
in BeatmapListingOverlay
This commit is contained in:
parent
d80db2aee7
commit
beb3d41f0c
@ -104,11 +104,11 @@ namespace osu.Game.Overlays
|
||||
filterControl.CardSize.BindValueChanged(_ => onCardSizeChanged());
|
||||
|
||||
apiUser = api.LocalUser.GetBoundCopy();
|
||||
apiUser.BindValueChanged(_ =>
|
||||
apiUser.BindValueChanged(_ => Schedule(() =>
|
||||
{
|
||||
if (api.IsLoggedIn)
|
||||
addContentToResultsArea(Drawable.Empty());
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
public void ShowWithSearch(string query)
|
||||
|
Loading…
Reference in New Issue
Block a user