1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 11:27:24 +08:00

Fix possible crash due to not loaded api

This commit is contained in:
Andrei Zavatski 2020-01-23 12:59:53 +03:00
parent 667fdb907c
commit 0c3120d965

View File

@ -119,7 +119,7 @@ namespace osu.Game.Overlays.Comments
protected override void LoadComplete()
{
Sort.BindValueChanged(_ => refetchComments());
Sort.BindValueChanged(_ => refetchComments(), true);
base.LoadComplete();
}
@ -129,6 +129,10 @@ namespace osu.Game.Overlays.Comments
{
this.type = type;
this.id = id;
if (!IsLoaded)
return;
refetchComments();
}