mirror of
https://github.com/ppy/osu
synced 2025-02-20 20:47:09 +00:00
Fix not being able to set AvailableMods
before loaded
This commit is contained in:
parent
7ac6073f13
commit
52bbce12f1
@ -49,7 +49,9 @@ namespace osu.Game.Overlays.Mods
|
||||
Debug.Assert(value.All(mod => mod.Mod.Type == ModType));
|
||||
|
||||
availableMods = value;
|
||||
asyncLoadPanels();
|
||||
|
||||
if (IsLoaded)
|
||||
asyncLoadPanels();
|
||||
}
|
||||
}
|
||||
|
||||
@ -249,6 +251,7 @@ namespace osu.Game.Overlays.Mods
|
||||
base.LoadComplete();
|
||||
|
||||
toggleAllCheckbox?.Current.BindValueChanged(_ => updateToggleAllText(), true);
|
||||
asyncLoadPanels();
|
||||
}
|
||||
|
||||
private void updateToggleAllText()
|
||||
|
Loading…
Reference in New Issue
Block a user