mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 13:27:23 +08:00
Fix possible crash due to not loaded api
This commit is contained in:
parent
667fdb907c
commit
0c3120d965
@ -119,7 +119,7 @@ namespace osu.Game.Overlays.Comments
|
|||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
Sort.BindValueChanged(_ => refetchComments());
|
Sort.BindValueChanged(_ => refetchComments(), true);
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,6 +129,10 @@ namespace osu.Game.Overlays.Comments
|
|||||||
{
|
{
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
|
||||||
|
if (!IsLoaded)
|
||||||
|
return;
|
||||||
|
|
||||||
refetchComments();
|
refetchComments();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user