1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Switch state case placements for consistency

Tickled me.
This commit is contained in:
Salman Ahmed 2021-06-10 13:15:18 +03:00
parent 26cdcc8d78
commit 5c9c424a0d

View File

@ -66,17 +66,17 @@ namespace osu.Game.Skinning
{
switch (args.Action)
{
case NotifyCollectionChangedAction.Remove:
foreach (var source in args.OldItems.Cast<ISkin>().OfType<ISkinSource>())
source.SourceChanged -= OnSourceChanged;
break;
case NotifyCollectionChangedAction.Add:
foreach (var source in args.NewItems.Cast<ISkin>().OfType<ISkinSource>())
source.SourceChanged += OnSourceChanged;
break;
case NotifyCollectionChangedAction.Remove:
foreach (var source in args.OldItems.Cast<ISkin>().OfType<ISkinSource>())
source.SourceChanged -= OnSourceChanged;
break;
}
}), true);
}