Set duplicates flag for hotkeys in HotkeyManager
This commit is contained in:
committed by
abcdefg30
parent
38f5d2c100
commit
ad02adff3e
@@ -490,9 +490,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
if (selectedHotkeyDefinition == null)
|
||||
selectedHotkeyDefinition = hd;
|
||||
|
||||
if (modData.Hotkeys.GetFirstDuplicate(hd.Name, modData.Hotkeys[hd.Name].GetValue(), hd) != null)
|
||||
hd.HasDuplicates = true;
|
||||
|
||||
BindHotkeyPref(hd, template, hotkeyList);
|
||||
}
|
||||
}
|
||||
@@ -801,9 +798,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
WidgetUtils.TruncateButtonToTooltip(selectedHotkeyButton, hotkeyEntryWidget.Key.DisplayString());
|
||||
modData.Hotkeys.Set(selectedHotkeyDefinition.Name, hotkeyEntryWidget.Key);
|
||||
Game.Settings.Save();
|
||||
|
||||
foreach (var hd in modData.Hotkeys.Definitions)
|
||||
hd.HasDuplicates = modData.Hotkeys.GetFirstDuplicate(hd.Name, modData.Hotkeys[hd.Name].GetValue(), hd) != null;
|
||||
}
|
||||
|
||||
void ResetHotkey()
|
||||
|
||||
Reference in New Issue
Block a user