Fix hidden issue with automatic customisation panel show logic

Doesn't cause tests to fail headless, but they do fail in the test
browser.
This commit is contained in:
Bartłomiej Dach 2022-05-05 19:07:44 +02:00
parent 14d2159b8c
commit 2cc56a4b19
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -217,7 +217,7 @@ namespace osu.Game.Overlays.Mods
foreach (var mod in SelectedMods.Value)
{
anyCustomisableMod |= mod.GetSettingsSourceProperties().Any();
anyModWithRequiredCustomisationAdded |= !valueChangedEvent.OldValue.Contains(mod) && mod.RequiresConfiguration;
anyModWithRequiredCustomisationAdded |= valueChangedEvent.OldValue.All(m => m.GetType() != mod.GetType()) && mod.RequiresConfiguration;
}
if (anyCustomisableMod)