mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
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:
parent
88e99d78cb
commit
a0c09b7d6a
1 changed files with 6 additions and 0 deletions
|
@ -266,6 +266,12 @@ namespace GreenshotPlugin.Controls {
|
||||||
if (typeof(CheckBox).IsAssignableFrom(field.FieldType)) {
|
if (typeof(CheckBox).IsAssignableFrom(field.FieldType)) {
|
||||||
CheckBox checkBox = controlObject as CheckBox;
|
CheckBox checkBox = controlObject as CheckBox;
|
||||||
checkBox.Checked = (bool)section.Values[configBindable.PropertyName].Value;
|
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)) {
|
} else if (typeof(TextBox).IsAssignableFrom(field.FieldType)) {
|
||||||
TextBox textBox = controlObject as TextBox;
|
TextBox textBox = controlObject as TextBox;
|
||||||
textBox.Text = (string)section.Values[configBindable.PropertyName].Value;
|
textBox.Text = (string)section.Values[configBindable.PropertyName].Value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue