Alter sequential hotkey style to always use visible index

Previous behaviour was once mentioned off-hand as unintuitive.
This commit is contained in:
Bartłomiej Dach
2022-06-21 15:19:41 +02:00
parent a9f6eb0293
commit f564ed589f

View File

@ -48,8 +48,8 @@ namespace osu.Game.Overlays.Mods.Input
if (index < 0)
return false;
var modState = availableMods.ElementAtOrDefault(index);
if (modState == null || modState.Filtered.Value)
var modState = availableMods.Where(modState => !modState.Filtered.Value).ElementAtOrDefault(index);
if (modState == null)
return false;
modState.Active.Toggle();