Removed force update

This commit is contained in:
Jaex 2014-05-11 10:20:20 +03:00
parent 123f55564b
commit 7d5ee6a3f9

View file

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