optimise startup a bit
This commit is contained in:
parent
1f29a05e80
commit
b7ae273fa3
1 changed files with 10 additions and 7 deletions
|
@ -37,16 +37,19 @@ namespace EnvyUpdate
|
||||||
Directory.CreateDirectory(appdata);
|
Directory.CreateDirectory(appdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
if (exepath == appdata)
|
||||||
{
|
{
|
||||||
if (Util.GetNewVer() != version && exepath == appdata)
|
try
|
||||||
{
|
{
|
||||||
Util.UpdateApp();
|
if (Util.GetNewVer() != version)
|
||||||
|
{
|
||||||
|
Util.UpdateApp();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (WebException)
|
||||||
|
{
|
||||||
|
//Silently fail.
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (WebException)
|
|
||||||
{
|
|
||||||
//Silently fail.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Util.GetLocDriv() != null)
|
if (Util.GetLocDriv() != null)
|
||||||
|
|
Reference in a new issue