Skip to content

Commit

Permalink
Fix update checker returns old version
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed605 authored Apr 8, 2020
1 parent df2ac22 commit c926e2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SRC/SparkIV/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ namespace SparkIV
{
public class Updater
{
private const string VersionUrl = "https://pastebin.com/raw/M6nhwaBw";
private const string UpdateUrl = "https://pastebin.com/raw/R3wJ0GQ7";
private const string VersionUrl = "https://raw.githubusercontent.com/ahmed605/SparkIV/master/Config/version.txt";
private const string UpdateUrl = "https://raw.githubusercontent.com/ahmed605/SparkIV/master/Config/url.txt";
private const string DownloadListUrl = "https://github.com/ahmed605/SparkIV/releases";

public static void CheckForUpdate()
Expand Down Expand Up @@ -107,6 +107,7 @@ private static string GetWebString(string url)
try
{
var client = new System.Net.WebClient();
client.CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.NoCacheNoStore);
result = client.DownloadString(url);
}
catch (Exception ex)
Expand All @@ -133,4 +134,4 @@ private static string GetWebString(string url)
return result;
}
}
}
}

0 comments on commit c926e2f

Please sign in to comment.