1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 15:50:14 +08:00

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
Unverified
parent 14d2159b8c
commit 2cc56a4b19
+1 -1
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)