diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index d1f2b03b..129a3859 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/SunnyUI/Forms/UIForm.designer.cs b/SunnyUI/Forms/UIForm.designer.cs index 30f4e668..84154206 100644 --- a/SunnyUI/Forms/UIForm.designer.cs +++ b/SunnyUI/Forms/UIForm.designer.cs @@ -17,9 +17,12 @@ namespace Sunny.UI { this.UnRegister(); - foreach (var hotKey in this.hotKeys.Values) + if (hotKeys != null) { - Win32.User.UnregisterHotKey(IntPtr.Zero, hotKey.id); + foreach (var hotKey in hotKeys.Values) + { + Win32.User.UnregisterHotKey(IntPtr.Zero, hotKey.id); + } } if (disposing && (components != null))