Fix for self-awareness about UNSTABLE / Release

This commit is contained in:
RKrom 2014-06-17 14:33:33 +02:00
commit c6bd67ce4b
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ namespace Greenshot.Experimental {
// the current version is a release or release candidate AND check unstable is turned off. // the current version is a release or release candidate AND check unstable is turned off.
if (rssFile.isUnstable) { if (rssFile.isUnstable) {
// Skip if we shouldn't check unstables // 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; continue;
} }
} }

View file

@ -254,7 +254,7 @@ namespace GreenshotPlugin.Core {
public bool ProcessEXIFOrientation; public bool ProcessEXIFOrientation;
// Specifies what THIS build is // Specifies what THIS build is
public BuildStates BuildState = BuildStates.RELEASE; public BuildStates BuildState = Assembly.GetExecutingAssembly().GetName().Version.Build % 2 == 0 ? BuildStates.UNSTABLE : BuildStates.RELEASE;
/// <summary> /// <summary>
/// A helper method which returns true if the supplied experimental feature is enabled /// A helper method which returns true if the supplied experimental feature is enabled