1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-13 20:33:35 +08:00

Refresh mod panel active states when recreated

This commit is contained in:
Dan Balasescu
2025-03-27 19:05:26 +09:00
Unverified
parent 8c244134d5
commit dcb5389ab7
@@ -353,7 +353,10 @@ namespace osu.Game.Overlays.Mods
.ToArray();
foreach (var modState in modStates)
{
modState.Active.Value = SelectedMods.Value.Any(selected => selected.GetType() == modState.Mod.GetType());
modState.Active.BindValueChanged(_ => updateFromInternalSelection());
}
newLocalAvailableMods[modType] = modStates;
}