Add multiple mod testing and update test code style

This commit is contained in:
Dean Herbert
2019-12-06 15:42:11 +09:00
parent 170954bc6e
commit af35df4077
2 changed files with 34 additions and 24 deletions

View File

@ -345,7 +345,7 @@ namespace osu.Game.Overlays.Mods
if (added is IModHasSettings)
ModSettingsContent.Add(new ModControlSection(added));
else if (removed is IModHasSettings)
ModSettingsContent.Remove(ModSettingsContent.Children.Where(section => section.Mod == removed).Single());
ModSettingsContent.Remove(ModSettingsContent.Children.Single(section => section.Mod == removed));
CustomizeButton.Enabled.Value = ModSettingsContent.Children.Count > 0;