Prevent updates from happening if in test.
This commit is contained in:
@@ -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)
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user