mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Merge pull request #5087 from Jaex/master
fixed #5068: Automatically register failed hotkeys
This commit is contained in:
commit
c5ecb6af06
1 changed files with 11 additions and 0 deletions
|
@ -111,10 +111,21 @@ private void UpdateHotkeyStatus()
|
|||
}
|
||||
}
|
||||
|
||||
private void RegisterFailedHotkeys()
|
||||
{
|
||||
foreach (HotkeySettings hotkeySettings in manager.Hotkeys.Where(x => x.HotkeyInfo.Status == HotkeyStatus.Failed))
|
||||
{
|
||||
manager.RegisterHotkey(hotkeySettings);
|
||||
}
|
||||
|
||||
UpdateHotkeyStatus();
|
||||
}
|
||||
|
||||
private void control_HotkeyChanged(object sender, EventArgs e)
|
||||
{
|
||||
HotkeySelectionControl control = (HotkeySelectionControl)sender;
|
||||
manager.RegisterHotkey(control.Setting);
|
||||
RegisterFailedHotkeys();
|
||||
}
|
||||
|
||||
private HotkeySelectionControl AddHotkeySelectionControl(HotkeySettings hotkeySetting)
|
||||
|
|
Loading…
Reference in a new issue