mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
-NoHotkeys won't show failed hotkeys msg box instead of not registering hotkeys
This commit is contained in:
parent
2722676f1a
commit
0a265c7871
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue