mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:12:56 +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()
|
||||
{
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user