Remove from HotkeyManager hotkeys found in settings.yaml but not in hotkey definitons

This commit is contained in:
Ivaylo Draganov
2019-05-10 13:47:50 +03:00
committed by abcdefg30
parent db8c8fee4d
commit 7dfd91bc39

View File

@@ -34,8 +34,11 @@ namespace OpenRA
} }
foreach (var kv in settings) foreach (var kv in settings)
{
if (definitions.ContainsKey(kv.Key))
keys[kv.Key] = kv.Value; keys[kv.Key] = kv.Value;
} }
}
internal Func<Hotkey> GetHotkeyReference(string name) internal Func<Hotkey> GetHotkeyReference(string name)
{ {