This changes enables the settings (most of them) which are supplied in the greenshot-fixed.ini to be unchangeable in the settings.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1969 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-07-30 18:09:19 +00:00
commit 48159a99b0
7 changed files with 122 additions and 55 deletions

View file

@ -123,7 +123,7 @@ namespace Greenshot.IniFile {
if (Attribute.IsDefined(fieldInfo, typeof(IniPropertyAttribute))) {
if (!Values.ContainsKey(fieldInfo.Name)) {
IniPropertyAttribute iniPropertyAttribute = (IniPropertyAttribute)fieldInfo.GetCustomAttributes(typeof(IniPropertyAttribute), false)[0];
Values.Add(fieldInfo.Name, new IniValue(this, fieldInfo, iniPropertyAttribute));
Values.Add(iniPropertyAttribute.Name, new IniValue(this, fieldInfo, iniPropertyAttribute));
}
}
}
@ -132,7 +132,7 @@ namespace Greenshot.IniFile {
if (Attribute.IsDefined(propertyInfo, typeof(IniPropertyAttribute))) {
if (!Values.ContainsKey(propertyInfo.Name)) {
IniPropertyAttribute iniPropertyAttribute = (IniPropertyAttribute)propertyInfo.GetCustomAttributes(typeof(IniPropertyAttribute), false)[0];
Values.Add(propertyInfo.Name, new IniValue(this, propertyInfo, iniPropertyAttribute));
Values.Add(iniPropertyAttribute.Name, new IniValue(this, propertyInfo, iniPropertyAttribute));
}
}
}