mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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());
|
filterControl.CardSize.BindValueChanged(_ => onCardSizeChanged());
|
||||||
|
|
||||||
apiUser = api.LocalUser.GetBoundCopy();
|
apiUser = api.LocalUser.GetBoundCopy();
|
||||||
apiUser.BindValueChanged(_ =>
|
apiUser.BindValueChanged(_ => Schedule(() =>
|
||||||
{
|
{
|
||||||
if (api.IsLoggedIn)
|
if (api.IsLoggedIn)
|
||||||
addContentToResultsArea(Drawable.Empty());
|
addContentToResultsArea(Drawable.Empty());
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowWithSearch(string query)
|
public void ShowWithSearch(string query)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user