From c6bd67ce4ba5b7ea354385fa84e2b23168f4e1cb Mon Sep 17 00:00:00 2001 From: RKrom Date: Tue, 17 Jun 2014 14:33:33 +0200 Subject: [PATCH] Fix for self-awareness about UNSTABLE / Release --- Greenshot/Helpers/UpdateHelper.cs | 2 +- GreenshotPlugin/Core/CoreConfiguration.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Greenshot/Helpers/UpdateHelper.cs b/Greenshot/Helpers/UpdateHelper.cs index 9fcf16bb3..6c8d2b178 100644 --- a/Greenshot/Helpers/UpdateHelper.cs +++ b/Greenshot/Helpers/UpdateHelper.cs @@ -137,7 +137,7 @@ namespace Greenshot.Experimental { // the current version is a release or release candidate AND check unstable is turned off. if (rssFile.isUnstable) { // Skip if we shouldn't check unstables - if ((conf.BuildState == BuildStates.RELEASE || conf.BuildState == BuildStates.RELEASE_CANDIDATE) && !conf.CheckForUnstable) { + if ((conf.BuildState == BuildStates.RELEASE) && !conf.CheckForUnstable) { continue; } } diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index 87e3e539d..20155b965 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -254,7 +254,7 @@ namespace GreenshotPlugin.Core { public bool ProcessEXIFOrientation; // Specifies what THIS build is - public BuildStates BuildState = BuildStates.RELEASE; + public BuildStates BuildState = Assembly.GetExecutingAssembly().GetName().Version.Build % 2 == 0 ? BuildStates.UNSTABLE : BuildStates.RELEASE; /// /// A helper method which returns true if the supplied experimental feature is enabled