mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:33:20 +08:00
Change select all mod buttons to check ValidForSelection
instead of directly checking system mods
This commit is contained in:
parent
c476843a83
commit
aebf246f62
@ -41,8 +41,8 @@ namespace osu.Game.Overlays.Mods
|
||||
private void updateEnabledState()
|
||||
{
|
||||
Enabled.Value = availableMods.Value
|
||||
.Where(pair => pair.Key != ModType.System)
|
||||
.SelectMany(pair => pair.Value)
|
||||
.Where(modState => modState.ValidForSelection.Value)
|
||||
.Any(modState => !modState.Active.Value && modState.Visible);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user