Make sure we don't try to reference the hotKeyButton if not created.
This commit is contained in:
parent
8c1c999818
commit
9cfe610f84
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
this.KeyDown += (sender, e) =>
|
||||
{
|
||||
if (!hotKeyButton.Checked)
|
||||
if (hotKeyButton == null ||
|
||||
!hotKeyButton.Checked)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue