Minor/log changes

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@862 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-08-24 15:26:35 +00:00
commit 2945282990
2 changed files with 4 additions and 4 deletions

View file

@ -92,7 +92,7 @@ namespace Greenshot.Core {
[IniProperty("OutputPrintTimestamp", Description="Print timestamp on print?", DefaultValue="true")]
public bool OutputPrintTimestamp;
[IniProperty("Test", Description="Test property", DefaultValue="")]
[IniProperty("Test", Description="Test property")]
public Dictionary<string, bool> testProp;
/// <summary>

View file

@ -245,7 +245,6 @@ namespace Greenshot.Core {
LOG.Error("Problem converting " + fieldType.FullName, e);
}
if (newValue != null) {
LOG.Debug("Adding: " + newValue);
addMethodInfo.Invoke(list, new object[] {newValue});
}
}
@ -486,12 +485,12 @@ namespace Greenshot.Core {
writer.WriteLine();
section.IsDirty = false;
}
writer.WriteLine();
// Write left over properties
foreach(string sectionName in iniProperties.Keys) {
// Check if the section is one that is "registered", if so skip it!
if (!sectionMap.ContainsKey(sectionName)) {
writer.WriteLine("; The section {0} might be obsolete/unused, or a plugin hasn't claimed it due to errors.", sectionName);
writer.WriteLine("; The section {0} is not registered, maybe a plugin hasn't claimed it due to errors or some functionality isn't used yet.", sectionName);
// Write section name
writer.WriteLine("[{0}]", sectionName);
Dictionary<string, string> properties = iniProperties[sectionName];
@ -499,6 +498,7 @@ namespace Greenshot.Core {
foreach(string propertyName in properties.Keys) {
writer.WriteLine("{0}={1}", propertyName, properties[propertyName]);
}
writer.WriteLine();
}
}
writer.Close();