1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 18:13:16 +08:00

Use proper variable name

This commit is contained in:
Salman Ahmed 2022-07-15 07:44:56 +03:00
parent 0bafafd63b
commit 254d22de1c

View File

@ -9,9 +9,9 @@ namespace osu.Game.Collections
public class CollectionToggleMenuItem : ToggleMenuItem public class CollectionToggleMenuItem : ToggleMenuItem
{ {
public CollectionToggleMenuItem(BeatmapCollection collection, IBeatmapInfo beatmap) public CollectionToggleMenuItem(BeatmapCollection collection, IBeatmapInfo beatmap)
: base(collection.Name.Value, MenuItemType.Standard, s => : base(collection.Name.Value, MenuItemType.Standard, state =>
{ {
if (s) if (state)
collection.BeatmapHashes.Add(beatmap.MD5Hash); collection.BeatmapHashes.Add(beatmap.MD5Hash);
else else
collection.BeatmapHashes.Remove(beatmap.MD5Hash); collection.BeatmapHashes.Remove(beatmap.MD5Hash);