-NoHotkeys won't show failed hotkeys msg box instead of not registering hotkeys

This commit is contained in:
Jaex 2015-12-03 22:40:17 +02:00
parent 2722676f1a
commit 0a265c7871

View file

@ -46,7 +46,7 @@ public class HotkeyManager
private HotkeyForm hotkeyForm;
public HotkeyManager(HotkeyForm form, List<HotkeySettings> hotkeys, bool registerHotkeys)
public HotkeyManager(HotkeyForm form, List<HotkeySettings> hotkeys, bool showFailedHotkeys)
{
hotkeyForm = form;
hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress;
@ -54,9 +54,10 @@ public HotkeyManager(HotkeyForm form, List<HotkeySettings> hotkeys, bool registe
Hotkeys = hotkeys;
if (registerHotkeys)
RegisterAllHotkeys();
if (showFailedHotkeys)
{
RegisterAllHotkeys();
ShowFailedHotkeys();
}
}