From 2945282990788e91c23567073a388e6f26b980b2 Mon Sep 17 00:00:00 2001 From: RKrom Date: Tue, 24 Aug 2010 15:26:35 +0000 Subject: [PATCH] Minor/log changes git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@862 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotCore/Configuration/CoreConfiguration.cs | 2 +- GreenshotCore/Core/ConfigHelper.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GreenshotCore/Configuration/CoreConfiguration.cs b/GreenshotCore/Configuration/CoreConfiguration.cs index dbdaeccff..5d7456e57 100644 --- a/GreenshotCore/Configuration/CoreConfiguration.cs +++ b/GreenshotCore/Configuration/CoreConfiguration.cs @@ -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 testProp; /// diff --git a/GreenshotCore/Core/ConfigHelper.cs b/GreenshotCore/Core/ConfigHelper.cs index a7d6916a6..96346a390 100644 --- a/GreenshotCore/Core/ConfigHelper.cs +++ b/GreenshotCore/Core/ConfigHelper.cs @@ -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 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();