Fix classic hotkeys toggling filtered mods

This commit is contained in:
Bartłomiej Dach 2022-06-21 15:01:33 +02:00
parent a996325e19
commit 9e5cc89edb
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public bool HandleHotkeyPressed(KeyDownEvent e, IEnumerable<ModState> availableM
if (!mod_type_lookup.TryGetValue(e.Key, out var typesToMatch)) if (!mod_type_lookup.TryGetValue(e.Key, out var typesToMatch))
return false; return false;
var matchingMods = availableMods.Where(modState => matches(modState, typesToMatch)).ToArray(); var matchingMods = availableMods.Where(modState => matches(modState, typesToMatch) && !modState.Filtered.Value).ToArray();
if (matchingMods.Length == 0) if (matchingMods.Length == 0)
return false; return false;