Use own update manager, so we can pass proxy #1266

This commit is contained in:
bao-qian
2017-03-07 19:23:42 +00:00
parent ade6c46cca
commit 6f42bcfa4f
4 changed files with 40 additions and 12 deletions

View File

@@ -272,7 +272,7 @@ namespace Wox
return;
}
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Infrastructure.Constant.Github);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Infrastructure.Constant.Repository);
if (string.IsNullOrEmpty(_settings.Proxy.UserName) || string.IsNullOrEmpty(_settings.Proxy.Password))
{
request.Proxy = new WebProxy(_settings.Proxy.Server, _settings.Proxy.Port);

View File

@@ -206,7 +206,7 @@ namespace Wox.ViewModel
},
new Result
{
Title = $"Open Source: {Constant.Github}",
Title = $"Open Source: {Constant.Repository}",
SubTitle = "Please star it!"
}
};
@@ -316,7 +316,7 @@ namespace Wox.ViewModel
#region about
public static string Github => Constant.Github;
public static string Github => Constant.Repository;
public static string ReleaseNotes => @"https://github.com/Wox-launcher/Wox/releases/latest";
public static string Version => Constant.Version;
public string ActivatedTimes => string.Format(_translater.GetTranslation("about_activate_times"), Settings.ActivateTimes);