Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Hylke Bons
dc4e65beb3 about: Make version check address a variable 2018-08-06 09:16:32 +01:00

View file

@ -32,6 +32,7 @@ namespace SparkleShare {
public delegate void UpdateLabelEventDelegate (string text);
public readonly string WebsiteLinkAddress = "https://www.sparkleshare.org/";
public readonly string VersionCheckAddress = "https://www.sparkleshare.org/version";
public readonly string CreditsLinkAddress = "https://github.com/hbons/SparkleShare/blob/master/legal/Authors.txt";
public readonly string ReportProblemLinkAddress = "https://www.github.com/hbons/SparkleShare/issues";
public readonly string DebugLogLinkAddress = "file://" + SparkleShare.Controller.Config.LogFilePath;
@ -62,7 +63,7 @@ namespace SparkleShare {
Thread.Sleep (500);
var web_client = new WebClient ();
var uri = new Uri ("https://www.sparkleshare.org/version");
var uri = new Uri (VersionCheckAddress);
try {
string latest_version = web_client.DownloadString (uri);
@ -80,3 +81,4 @@ namespace SparkleShare {
}
}
}