mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 23:53:00 +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:
parent
14d2159b8c
commit
2cc56a4b19
@ -217,7 +217,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
foreach (var mod in SelectedMods.Value)
|
foreach (var mod in SelectedMods.Value)
|
||||||
{
|
{
|
||||||
anyCustomisableMod |= mod.GetSettingsSourceProperties().Any();
|
anyCustomisableMod |= mod.GetSettingsSourceProperties().Any();
|
||||||
anyModWithRequiredCustomisationAdded |= !valueChangedEvent.OldValue.Contains(mod) && mod.RequiresConfiguration;
|
anyModWithRequiredCustomisationAdded |= valueChangedEvent.OldValue.All(m => m.GetType() != mod.GetType()) && mod.RequiresConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (anyCustomisableMod)
|
if (anyCustomisableMod)
|
||||||
|
Loading…
Reference in New Issue
Block a user