Compare commits
No commits in common. "51c07d7d99932af1108e11c9fb3435d63b657b69" and "0d5546acfe2f0b86dcee3332c4950e6786b02545" have entirely different histories.
51c07d7d99
...
0d5546acfe
@ -81,6 +81,7 @@ public class VersionManager : IDisposable
|
|||||||
public async Task InstallPackage()
|
public async Task InstallPackage()
|
||||||
{
|
{
|
||||||
var version = await GetLatestVersion();
|
var version = await GetLatestVersion();
|
||||||
|
|
||||||
if (version == null)
|
if (version == null)
|
||||||
throw new Exception("No version data found");
|
throw new Exception("No version data found");
|
||||||
if (version.UploadHash == _currentVersion)
|
if (version.UploadHash == _currentVersion)
|
||||||
@ -105,9 +106,6 @@ public class VersionManager : IDisposable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_currentVersion != null)
|
|
||||||
Directory.Delete(GetVersionPath(_currentVersion), true);
|
|
||||||
|
|
||||||
_currentVersion = version.UploadHash;
|
_currentVersion = version.UploadHash;
|
||||||
WriteAppSettings();
|
WriteAppSettings();
|
||||||
Registry.SaveVersion(_appData.PackageName, version.UploadHash);
|
Registry.SaveVersion(_appData.PackageName, version.UploadHash);
|
||||||
|
Reference in New Issue
Block a user