138: Simplify Hotkey management code

This commit is contained in:
Anton Kasyanov
2019-02-25 21:33:49 +02:00
parent f229681f54
commit ff36d15b75
2 changed files with 14 additions and 46 deletions

View File

@@ -287,15 +287,7 @@ namespace EveOPreview.View
this._hotkeyHandler = new HotkeyHandler(this.Handle, hotkey);
this._hotkeyHandler.Pressed += HotkeyPressed_Handler;
try
{
this._hotkeyHandler.Register();
}
catch (Exception)
{
// There can be a lot of possible exception reasons here
// In case of any of them the hotkey setting is silently ignored
}
this._hotkeyHandler.Register();
}
public void UnregisterHotkey()