optimise startup a bit

This commit is contained in:
Jakob 2019-12-30 21:21:22 +01:00
parent 1f29a05e80
commit b7ae273fa3

View file

@ -37,16 +37,19 @@ namespace EnvyUpdate
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)