1.0.19 Release Fix.

This commit is contained in:
Patrick Fic
2021-05-31 14:20:54 -07:00
parent 63276f2f7d
commit 41b3262ff7
3 changed files with 15 additions and 8 deletions

View File

@@ -93,15 +93,20 @@ namespace BodyshopPartner.ViewModels
#if (!DEBUG)
#if (!DEBUG)
if (!Utils.AppMetaData.IsTest)
{
logger.Debug("Checking if updates are available.");
await Utils.UpdateHandler.UpdateAppEasy((val) => UpdateProgress = val);
UpdateAvailable = await Utils.UpdateHandler.AreUpdatesAvailable();
if (UpdateAvailable)
{
logger.Debug("Updates are available!");
await Utils.UpdateHandler.UpdateAppEasy((val) => UpdateProgress = val);
}
}
//UpdateAvailable = await Utils.UpdateHandler.AreUpdatesAvailable();
//if (UpdateAvailable)
//{
// string msg = "An update to ImEX Online Partner is Available. It will be automatically downloaded and applied.";
// Utils.Notifications.notifier.ShowInformation(msg);
// logger.Debug("Updates are available! Installing.");
@@ -116,7 +121,7 @@ namespace BodyshopPartner.ViewModels
// }
//}
#endif
#endif
}