mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Checked ClickActions, added the Settings as possible value. Also made sure we log more information if the INI has wrong values.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2434 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
f20ced15a7
commit
771fc93d6b
3 changed files with 14 additions and 7 deletions
|
@ -288,9 +288,12 @@ namespace Greenshot.IniFile {
|
|||
newValue = null;
|
||||
if (!defaultUsed) {
|
||||
try {
|
||||
LOG.WarnFormat("Problem '{0}' while converting {1} to type {2} trying fallback...", ex1.Message, propertyValue, valueType.FullName);
|
||||
newValue = ConvertStringToValueType(valueType, defaultValue, attributes.Separator);
|
||||
this.ContainingIniSection.IsDirty = true;
|
||||
LOG.InfoFormat("Used default value {0} for property {1}", defaultValue, propertyName);
|
||||
} catch (Exception ex2) {
|
||||
LOG.Warn("Problem converting " + propertyValue + " to type " + valueType.FullName, ex2);
|
||||
LOG.Warn("Problem converting fallback value " + defaultValue + " to type " + valueType.FullName, ex2);
|
||||
}
|
||||
} else {
|
||||
LOG.Warn("Problem converting " + propertyValue + " to type " + valueType.FullName, ex1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue