Added comment for unused sections in the ini file

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@814 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-08-18 05:54:39 +00:00
parent 5e37adbd0c
commit d7501c6026

View file

@ -387,6 +387,7 @@ namespace Greenshot.Core {
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);
// Write section name
writer.WriteLine("[{0}]", sectionName);
Dictionary<string, string> properties = iniProperties[sectionName];