Skip to content

Commit

Permalink
update to 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Soul Dark committed Jul 19, 2018
1 parent bf48c5c commit 4d49f82
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions shadowsocks-csharp/Controller/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,29 +125,29 @@ private bool IsNewVersion(string url)
return false;
}
// check dotnet 4.0
AssemblyName[] references = Assembly.GetExecutingAssembly().GetReferencedAssemblies();
Version dotNetVersion = Environment.Version;
foreach (AssemblyName reference in references)
{
if (reference.Name == "mscorlib")
{
dotNetVersion = reference.Version;
}
}
if (dotNetVersion.Major >= 4)
{
if (url.IndexOf("dotnet4.0") < 0)
{
return false;
}
}
else
{
if (url.IndexOf("dotnet4.0") >= 0)
{
return false;
}
}
//AssemblyName[] references = Assembly.GetExecutingAssembly().GetReferencedAssemblies();
//Version dotNetVersion = Environment.Version;
//foreach (AssemblyName reference in references)
//{
// if (reference.Name == "mscorlib")
// {
// dotNetVersion = reference.Version;
// }
//}
//if (dotNetVersion.Major >= 4)
//{
// if (url.IndexOf("dotnet4.0") < 0)
// {
// return false;
// }
//}
//else
//{
// if (url.IndexOf("dotnet4.0") >= 0)
// {
// return false;
// }
//}
string version = ParseVersionFromURL(url);
if (version == null)
{
Expand Down
2 changes: 1 addition & 1 deletion shadowsocks-csharp/View/MenuViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ void UpdateItem_Clicked(object sender, EventArgs e)

void notifyIcon1_BalloonTipClicked(object sender, EventArgs e)
{
//System.Diagnostics.Process.Start(updateChecker.LatestVersionURL);
System.Diagnostics.Process.Start(updateChecker.LatestVersionURL);
_notifyIcon.BalloonTipClicked -= notifyIcon1_BalloonTipClicked;
}

Expand Down

0 comments on commit 4d49f82

Please sign in to comment.