Revert "No forceUpdate"

This reverts commit 32de79555b.
This commit is contained in:
mcored 2014-05-11 19:41:15 +08:00
parent aaf19b3a71
commit fa8459d3ea

View file

@ -56,6 +56,8 @@ public string Filename
public string DownloadURL { get; set; }
public ReleaseChannelType ReleaseChannel { get; set; }
private bool forceUpdate = false; // For testing purposes
public UpdateInfo()
{
ReleaseChannel = ReleaseChannelType.Stable;
@ -64,7 +66,7 @@ public UpdateInfo()
public void RefreshStatus()
{
if (Status != UpdateStatus.UpdateCheckFailed && CurrentVersion != null && LatestVersion != null &&
!string.IsNullOrEmpty(DownloadURL) && Helpers.CheckVersion(CurrentVersion, LatestVersion))
!string.IsNullOrEmpty(DownloadURL) && (forceUpdate || Helpers.CheckVersion(CurrentVersion, LatestVersion)))
{
Status = UpdateStatus.UpdateAvailable;
}