mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
With #321 it as reported that the reload functionality didn't work, there was actually a bug in the code replacing the values.
This commit is contained in:
parent
b37b123e8e
commit
ce56ee1cb6
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ namespace Greenshot.Base.IniFile
|
|||
IniPropertyAttribute iniPropertyAttribute = (IniPropertyAttribute) fieldInfo.GetCustomAttributes(typeof(IniPropertyAttribute), false)[0];
|
||||
if (!Values.ContainsKey(iniPropertyAttribute.Name))
|
||||
{
|
||||
Values.Add(iniPropertyAttribute.Name, new IniValue(this, fieldInfo, iniPropertyAttribute));
|
||||
Values[iniPropertyAttribute.Name] = new IniValue(this, fieldInfo, iniPropertyAttribute);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ namespace Greenshot.Base.IniFile
|
|||
if (!Values.ContainsKey(propertyInfo.Name))
|
||||
{
|
||||
IniPropertyAttribute iniPropertyAttribute = (IniPropertyAttribute) propertyInfo.GetCustomAttributes(typeof(IniPropertyAttribute), false)[0];
|
||||
Values.Add(iniPropertyAttribute.Name, new IniValue(this, propertyInfo, iniPropertyAttribute));
|
||||
Values[iniPropertyAttribute.Name] = new IniValue(this, propertyInfo, iniPropertyAttribute);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue