mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:53:20 +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.Add(new ModButton(new NoMod()));
|
||||||
modsContainer.AddRange(ruleset.NewValue.CreateInstance().GetAllMods().Where(m => m.Ranked).Select(m => new ModButton(m)));
|
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)
|
private void selectionChanged(Mod mod, bool selected)
|
||||||
|
Loading…
Reference in New Issue
Block a user