mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 19:54:15 +08:00
Refresh mod panel active states when recreated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user