For now keeping "check for unstable updates" and fixing exception if a wrong mapping is used.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1884 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-05-18 18:11:36 +00:00
commit 85bcd49851
2 changed files with 6 additions and 2 deletions

View file

@ -393,6 +393,9 @@ namespace GreenshotPlugin.Controls {
if (!string.IsNullOrEmpty(configBindable.SectionName) && !string.IsNullOrEmpty(configBindable.PropertyName)) { if (!string.IsNullOrEmpty(configBindable.SectionName) && !string.IsNullOrEmpty(configBindable.PropertyName)) {
IniSection section = IniConfig.GetIniSection(configBindable.SectionName); IniSection section = IniConfig.GetIniSection(configBindable.SectionName);
if (section != null) { if (section != null) {
if (!section.Values.ContainsKey(configBindable.PropertyName)) {
continue;
}
if (typeof(CheckBox).IsAssignableFrom(field.FieldType)) { if (typeof(CheckBox).IsAssignableFrom(field.FieldType)) {
CheckBox checkBox = controlObject as CheckBox; CheckBox checkBox = controlObject as CheckBox;
section.Values[configBindable.PropertyName].Value = checkBox.Checked; section.Values[configBindable.PropertyName].Value = checkBox.Checked;

View file

@ -174,8 +174,6 @@ namespace GreenshotPlugin.Core {
[IniProperty("MinimizeWorkingSetSize", Description="Optimize memory footprint, but with a performance penalty!", DefaultValue="False")] [IniProperty("MinimizeWorkingSetSize", Description="Optimize memory footprint, but with a performance penalty!", DefaultValue="False")]
public bool MinimizeWorkingSetSize; public bool MinimizeWorkingSetSize;
// change to false for releases
[IniProperty("CheckUnstable", Description = "Also check for unstable version updates", DefaultValue = "False")] [IniProperty("CheckUnstable", Description = "Also check for unstable version updates", DefaultValue = "False")]
public bool CheckUnstable; public bool CheckUnstable;
@ -285,6 +283,9 @@ namespace GreenshotPlugin.Core {
/// This method will be called after reading the configuration, so eventually some corrections can be made /// This method will be called after reading the configuration, so eventually some corrections can be made
/// </summary> /// </summary>
public override void AfterLoad() { public override void AfterLoad() {
// Comment with releases
CheckUnstable = true;
if (OutputDestinations == null) { if (OutputDestinations == null) {
OutputDestinations = new List<string>(); OutputDestinations = new List<string>();
} }