mirror of https://github.com/ppy/osu
Fix not being able to set `AvailableMods` before loaded
This commit is contained in:
parent
7ac6073f13
commit
52bbce12f1
|
@ -49,7 +49,9 @@ public IReadOnlyList<ModState> AvailableMods
|
|||
Debug.Assert(value.All(mod => mod.Mod.Type == ModType));
|
||||
|
||||
availableMods = value;
|
||||
asyncLoadPanels();
|
||||
|
||||
if (IsLoaded)
|
||||
asyncLoadPanels();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -249,6 +251,7 @@ protected override void LoadComplete()
|
|||
base.LoadComplete();
|
||||
|
||||
toggleAllCheckbox?.Current.BindValueChanged(_ => updateToggleAllText(), true);
|
||||
asyncLoadPanels();
|
||||
}
|
||||
|
||||
private void updateToggleAllText()
|
||||
|
|
Loading…
Reference in New Issue