mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +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()
|
private void updateEnabledState()
|
||||||
{
|
{
|
||||||
Enabled.Value = availableMods.Value
|
Enabled.Value = availableMods.Value
|
||||||
.Where(pair => pair.Key != ModType.System)
|
|
||||||
.SelectMany(pair => pair.Value)
|
.SelectMany(pair => pair.Value)
|
||||||
|
.Where(modState => modState.ValidForSelection.Value)
|
||||||
.Any(modState => !modState.Active.Value && modState.Visible);
|
.Any(modState => !modState.Active.Value && modState.Visible);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user