mirror of
https://github.com/osukey/osukey.git
synced 2025-05-02 20:27:27 +09: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));
|
Debug.Assert(value.All(mod => mod.Mod.Type == ModType));
|
||||||
|
|
||||||
availableMods = value;
|
availableMods = value;
|
||||||
asyncLoadPanels();
|
|
||||||
|
if (IsLoaded)
|
||||||
|
asyncLoadPanels();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,6 +251,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
toggleAllCheckbox?.Current.BindValueChanged(_ => updateToggleAllText(), true);
|
toggleAllCheckbox?.Current.BindValueChanged(_ => updateToggleAllText(), true);
|
||||||
|
asyncLoadPanels();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateToggleAllText()
|
private void updateToggleAllText()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user