fixed behavioural errors in updater ui

This commit is contained in:
2018-10-08 17:33:13 +02:00
parent ab8d53630c
commit d51cdf5a97

View File

@@ -148,8 +148,6 @@ namespace RothenburgAR.Updater
* meta.json
* id
* ...
* poi
* ...
* media
* ...
*/
@@ -157,6 +155,13 @@ namespace RothenburgAR.Updater
UpdateConfirmationDialog.SetActive(false);
UpdateFailedDialog.SetActive(false);
if (VersionAnswer == null)
{
// try to get VersionAnswer first if that's what failed
CheckForUpdates();
return;
}
//TODO write languages to file the app can read (so that the languagemanager can decide which languages the user can choose from)
var updatedMeta = VersionAnswer.Data.Where(d => d.Meta.Status == VersionStatus.updated).ToList();
@@ -330,6 +335,7 @@ namespace RothenburgAR.Updater
}
else
{
UpdateCompletedDialog.SetActive(false);
downloadEndedTime = DateTime.Now.AddSeconds(1);
}
}