mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
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:
parent
459c2e16f9
commit
48159a99b0
7 changed files with 122 additions and 55 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue