mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 22:02:56 +08:00
Use = instead of += for OnSelectionChanged Action
This commit is contained in:
parent
aca3690d77
commit
27f721eec2
@ -55,7 +55,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
modsContainer.Add(new ModButton(new NoMod()));
|
||||
modsContainer.AddRange(ruleset.NewValue.CreateInstance().GetAllMods().Where(m => m.Ranked).Select(m => new ModButton(m)));
|
||||
|
||||
modsContainer.ForEach(button => button.OnSelectionChanged += selectionChanged);
|
||||
modsContainer.ForEach(button => button.OnSelectionChanged = selectionChanged);
|
||||
}
|
||||
|
||||
private void selectionChanged(Mod mod, bool selected)
|
||||
|
Loading…
Reference in New Issue
Block a user