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,6 +49,8 @@ public IReadOnlyList<ModState> AvailableMods
|
||||||
Debug.Assert(value.All(mod => mod.Mod.Type == ModType));
|
Debug.Assert(value.All(mod => mod.Mod.Type == ModType));
|
||||||
|
|
||||||
availableMods = value;
|
availableMods = value;
|
||||||
|
|
||||||
|
if (IsLoaded)
|
||||||
asyncLoadPanels();
|
asyncLoadPanels();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -249,6 +251,7 @@ protected override void LoadComplete()
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
toggleAllCheckbox?.Current.BindValueChanged(_ => updateToggleAllText(), true);
|
toggleAllCheckbox?.Current.BindValueChanged(_ => updateToggleAllText(), true);
|
||||||
|
asyncLoadPanels();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateToggleAllText()
|
private void updateToggleAllText()
|
||||||
|
|
Loading…
Reference in New Issue