mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-08 23:08:31 +12:00
Removed force update
This commit is contained in:
parent
123f55564b
commit
7d5ee6a3f9
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue