Missed in previous commits.

This commit is contained in:
Patrick Fic
2021-01-18 11:26:25 -08:00
parent fa70ed65cc
commit 8b63557912
2 changed files with 16 additions and 34 deletions

View File

@@ -7,6 +7,7 @@ using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace BodyshopPartner.Utils
{
@@ -31,7 +32,7 @@ namespace BodyshopPartner.Utils
}
updateInfo.ReleasesToApply.ForEach(release => logger.Debug("Release to apply " + release.Version));
return true;
}
}
@@ -61,12 +62,16 @@ namespace BodyshopPartner.Utils
var updateInfo = await updateManager.CheckForUpdate();
var releases = updateInfo.ReleasesToApply;
logger.Debug("Applying releases", releases.ToString());
await updateManager.DownloadReleases(releases, _ => {
await updateManager.DownloadReleases(releases, _ =>
{
logger.Debug("Download Release Progress " + _.ToString());
DownloadProgress = _; });
await updateManager.ApplyReleases(updateInfo, _ => {
DownloadProgress = _;
});
await updateManager.ApplyReleases(updateInfo, _ =>
{
logger.Debug("Install Progress " + _.ToString());
InstallProgress = _; });
InstallProgress = _;
});
}
catch (Exception Ex)
{