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,9 +37,11 @@ namespace EnvyUpdate
Directory.CreateDirectory(appdata); Directory.CreateDirectory(appdata);
} }
if (exepath == appdata)
{
try try
{ {
if (Util.GetNewVer() != version && exepath == appdata) if (Util.GetNewVer() != version)
{ {
Util.UpdateApp(); Util.UpdateApp();
} }
@ -48,6 +50,7 @@ namespace EnvyUpdate
{ {
//Silently fail. //Silently fail.
} }
}
if (Util.GetLocDriv() != null) if (Util.GetLocDriv() != null)
{ {