Prevent updates from happening if in test.

This commit is contained in:
Patrick Fic
2021-05-26 10:37:15 -07:00
parent bfa68858e5
commit 19270d681b

View File

@@ -90,10 +90,15 @@ namespace BodyshopPartner.ViewModels
private async Task updateCheck()
{
#if (!DEBUG)
logger.Debug("Checking if updates are available.");
await Utils.UpdateHandler.UpdateAppEasy((val) => UpdateProgress = val);
#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)
//{