Restore taskbar
This commit is contained in:
@@ -88,13 +88,28 @@ namespace BodyshopPartner.ViewModels
|
||||
|
||||
private async Task updateCheck()
|
||||
{
|
||||
|
||||
#if (!DEBUG)
|
||||
logger.Debug("Checking if updates are available.");
|
||||
UpdateAvailable = await Utils.UpdateHandler.AreUpdatesAvailable();
|
||||
if (UpdateAvailable)
|
||||
{
|
||||
string msg = "An update to ImEX Online Partner is Available";
|
||||
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.");
|
||||
try
|
||||
{
|
||||
await Utils.UpdateHandler.ApplyUpdates((val) => UpdateProgress = val, (val) => UpdateProgress = val);
|
||||
|
||||
}
|
||||
catch (Exception Ex)
|
||||
{
|
||||
logger.Error("Error while updating." + Ex.ToString());
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user