For now keeping "check for unstable updates" and fixing exception if a wrong mapping is used.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1884 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-05-18 18:11:36 +00:00
commit 85bcd49851
2 changed files with 6 additions and 2 deletions

View file

@ -393,6 +393,9 @@ namespace GreenshotPlugin.Controls {
if (!string.IsNullOrEmpty(configBindable.SectionName) && !string.IsNullOrEmpty(configBindable.PropertyName)) {
IniSection section = IniConfig.GetIniSection(configBindable.SectionName);
if (section != null) {
if (!section.Values.ContainsKey(configBindable.PropertyName)) {
continue;
}
if (typeof(CheckBox).IsAssignableFrom(field.FieldType)) {
CheckBox checkBox = controlObject as CheckBox;
section.Values[configBindable.PropertyName].Value = checkBox.Checked;