From 9a153bd8467225c083e69201912314d022cb7e2d Mon Sep 17 00:00:00 2001 From: Ying Yuandong <897326609@qq.com> Date: Wed, 24 Feb 2016 12:06:23 +0800 Subject: [PATCH] fix empty pause remuse hotkey problem --- WGestures.App/Gui/Windows/SettingsFormController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WGestures.App/Gui/Windows/SettingsFormController.cs b/WGestures.App/Gui/Windows/SettingsFormController.cs index 8cacd9e..f9ff2f0 100755 --- a/WGestures.App/Gui/Windows/SettingsFormController.cs +++ b/WGestures.App/Gui/Windows/SettingsFormController.cs @@ -115,7 +115,7 @@ public GlobalHotKeyManager.HotKey? PauseResumeHotkey _hotkeyMgr.UnRegisterHotKey(ConfigKeys.PauseResumeHotKey); } - _config.Set(ConfigKeys.PauseResumeHotKey, value == null ? null : value.Value.ToBytes()); + _config.Set(ConfigKeys.PauseResumeHotKey, value == null ? new byte[0] : value.Value.ToBytes()); OnPropertyChanged("PauseResumeHotKey"); }