mirror of https://github.com/ppy/osu
Fix bindings being cleared if multiple bindings for same action have the same combination
This actually seems to be the case in catch (dash is bound to shift twice). This is annoying but harmless, so let's work around it for now to avoid ruining users' configs.
This commit is contained in:
parent
3aae07d1ca
commit
828cedea33
|
@ -145,7 +145,7 @@ public static int ClearDuplicateBindings(IEnumerable<IKeyBinding> keyBindings)
|
|||
|
||||
foreach (var group in lookup)
|
||||
{
|
||||
if (group.Count() <= 1)
|
||||
if (group.Select(kb => kb.Action).Distinct().Count() <= 1)
|
||||
continue;
|
||||
|
||||
foreach (var binding in group)
|
||||
|
|
Loading…
Reference in New Issue