1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-16 05:37:19 +08:00

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
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

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();