mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
0f8bd4ea0e
commit
85bcd49851
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue