1
0
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:
Andrei Zavatski 2019-11-13 00:24:13 +03:00
parent aca3690d77
commit 27f721eec2

View File

@ -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)