diff --git a/MixItUp.Base/Model/Settings/SettingsV3Model.cs b/MixItUp.Base/Model/Settings/SettingsV3Model.cs index 1a955e698..9acfffed3 100644 --- a/MixItUp.Base/Model/Settings/SettingsV3Model.cs +++ b/MixItUp.Base/Model/Settings/SettingsV3Model.cs @@ -785,14 +785,14 @@ await ServiceManager.Get().Read(this.DatabaseFilePath, "SELECT // Clear out unused Cooldown Groups and Command Groups var allUsedCooldownGroupNames = this.Commands.Values.ToList().Select(c => c.Requirements?.Cooldown?.GroupName).Distinct(); - var allUnusedCooldownGroupNames = this.CooldownGroupAmounts.ToList().Where(c => !allUsedCooldownGroupNames.Contains(c.Key, StringComparer.InvariantCultureIgnoreCase)); + var allUnusedCooldownGroupNames = this.CooldownGroupAmounts.ToList().Where(c => !allUsedCooldownGroupNames.Contains(c.Key, StringComparer.CurrentCulture)); foreach (var unused in allUnusedCooldownGroupNames) { this.CooldownGroupAmounts.Remove(unused.Key); } var allUsedCommandGroupNames = this.Commands.Values.ToList().Select(c => c.GroupName).Distinct(); - var allUnusedCommandGroupNames = this.CommandGroups.ToList().Where(c => !allUsedCommandGroupNames.Contains(c.Key, StringComparer.InvariantCultureIgnoreCase)); + var allUnusedCommandGroupNames = this.CommandGroups.ToList().Where(c => !allUsedCommandGroupNames.Contains(c.Key, StringComparer.CurrentCulture)); foreach (var unused in allUnusedCommandGroupNames) { this.CommandGroups.Remove(unused.Key);