Compare commits

..

No commits in common. "51c07d7d99932af1108e11c9fb3435d63b657b69" and "0d5546acfe2f0b86dcee3332c4950e6786b02545" have entirely different histories.

View File

@ -81,6 +81,7 @@ public class VersionManager : IDisposable
public async Task InstallPackage()
{
var version = await GetLatestVersion();
if (version == null)
throw new Exception("No version data found");
if (version.UploadHash == _currentVersion)
@ -104,9 +105,6 @@ public class VersionManager : IDisposable
Logger.Error($"Failed to download {file.Key}");
}
}
if(_currentVersion != null)
Directory.Delete(GetVersionPath(_currentVersion), true);
_currentVersion = version.UploadHash;
WriteAppSettings();