Skip to content

Commit

Permalink
replace Count check with SequenceEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
minisbett committed Oct 18, 2024
1 parent 4821938 commit 1b84638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PerformanceCalculatorGUI/Screens/SimulateScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ private void modsChanged(ValueChangedEvent<IReadOnlyList<Mod>> mods)
{
// Hotfix for preventing a difficulty and performance calculation from being trigger twice,
// as the mod overlay for some reason triggers a ValueChanged twice per mod change.
if (mods.OldValue.Count == mods.NewValue.Count)
if (mods.OldValue.SequenceEqual(mods.NewValue))
return;

modSettingChangeTracker?.Dispose();
Expand Down

0 comments on commit 1b84638

Please sign in to comment.