mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +13:00
parent
aaf19b3a71
commit
fa8459d3ea
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue