mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-21 04:43:55 +12:00
Fixed crash when hotkey registration fails.
This commit is contained in:
parent
6a97df159a
commit
9d8d723b0c
|
@ -117,7 +117,8 @@ namespace OnTopReplica.MessagePumpProcessors {
|
|||
}
|
||||
|
||||
var reg = HotKeyHandlerRegistration.Register(Form, keyCode, modifiers, handler);
|
||||
_handlers.Add(reg.RegistrationKey, reg);
|
||||
if(reg != null)
|
||||
_handlers.Add(reg.RegistrationKey, reg);
|
||||
}
|
||||
|
||||
private void ClearHandlers() {
|
||||
|
|
Loading…
Reference in a new issue