Fixed auto-storing hot key settings, during the display the wrong method was used ("Text = " instead of SetHotkey)

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1789 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-04-18 08:15:22 +00:00
parent 88e99d78cb
commit a0c09b7d6a

View file

@ -266,6 +266,12 @@ namespace GreenshotPlugin.Controls {
if (typeof(CheckBox).IsAssignableFrom(field.FieldType)) {
CheckBox checkBox = controlObject as CheckBox;
checkBox.Checked = (bool)section.Values[configBindable.PropertyName].Value;
} else if (typeof(HotkeyControl).IsAssignableFrom(field.FieldType)) {
HotkeyControl hotkeyControl = controlObject as HotkeyControl;
string hotkeyValue = (string)section.Values[configBindable.PropertyName].Value;
if (!string.IsNullOrEmpty(hotkeyValue)) {
hotkeyControl.SetHotkey(hotkeyValue);
}
} else if (typeof(TextBox).IsAssignableFrom(field.FieldType)) {
TextBox textBox = controlObject as TextBox;
textBox.Text = (string)section.Values[configBindable.PropertyName].Value;