1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 00:30:45 +08:00

Fix not being able to set AvailableMods before loaded

This commit is contained in:
Bartłomiej Dach
2022-05-11 20:23:56 +02:00
Unverified
parent 7ac6073f13
commit 52bbce12f1
+4 -1
View File
@@ -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()