mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
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:
parent
4310688689
commit
2945282990
2 changed files with 4 additions and 4 deletions
|
@ -92,7 +92,7 @@ namespace Greenshot.Core {
|
||||||
[IniProperty("OutputPrintTimestamp", Description="Print timestamp on print?", DefaultValue="true")]
|
[IniProperty("OutputPrintTimestamp", Description="Print timestamp on print?", DefaultValue="true")]
|
||||||
public bool OutputPrintTimestamp;
|
public bool OutputPrintTimestamp;
|
||||||
|
|
||||||
[IniProperty("Test", Description="Test property", DefaultValue="")]
|
[IniProperty("Test", Description="Test property")]
|
||||||
public Dictionary<string, bool> testProp;
|
public Dictionary<string, bool> testProp;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -245,7 +245,6 @@ namespace Greenshot.Core {
|
||||||
LOG.Error("Problem converting " + fieldType.FullName, e);
|
LOG.Error("Problem converting " + fieldType.FullName, e);
|
||||||
}
|
}
|
||||||
if (newValue != null) {
|
if (newValue != null) {
|
||||||
LOG.Debug("Adding: " + newValue);
|
|
||||||
addMethodInfo.Invoke(list, new object[] {newValue});
|
addMethodInfo.Invoke(list, new object[] {newValue});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -486,12 +485,12 @@ namespace Greenshot.Core {
|
||||||
writer.WriteLine();
|
writer.WriteLine();
|
||||||
section.IsDirty = false;
|
section.IsDirty = false;
|
||||||
}
|
}
|
||||||
|
writer.WriteLine();
|
||||||
// Write left over properties
|
// Write left over properties
|
||||||
foreach(string sectionName in iniProperties.Keys) {
|
foreach(string sectionName in iniProperties.Keys) {
|
||||||
// Check if the section is one that is "registered", if so skip it!
|
// Check if the section is one that is "registered", if so skip it!
|
||||||
if (!sectionMap.ContainsKey(sectionName)) {
|
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
|
// Write section name
|
||||||
writer.WriteLine("[{0}]", sectionName);
|
writer.WriteLine("[{0}]", sectionName);
|
||||||
Dictionary<string, string> properties = iniProperties[sectionName];
|
Dictionary<string, string> properties = iniProperties[sectionName];
|
||||||
|
@ -499,6 +498,7 @@ namespace Greenshot.Core {
|
||||||
foreach(string propertyName in properties.Keys) {
|
foreach(string propertyName in properties.Keys) {
|
||||||
writer.WriteLine("{0}={1}", propertyName, properties[propertyName]);
|
writer.WriteLine("{0}={1}", propertyName, properties[propertyName]);
|
||||||
}
|
}
|
||||||
|
writer.WriteLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
writer.Close();
|
writer.Close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue