fixed behavioural errors in updater ui
This commit is contained in:
@@ -148,8 +148,6 @@ namespace RothenburgAR.Updater
|
|||||||
* meta.json
|
* meta.json
|
||||||
* id
|
* id
|
||||||
* ...
|
* ...
|
||||||
* poi
|
|
||||||
* ...
|
|
||||||
* media
|
* media
|
||||||
* ...
|
* ...
|
||||||
*/
|
*/
|
||||||
@@ -157,6 +155,13 @@ namespace RothenburgAR.Updater
|
|||||||
UpdateConfirmationDialog.SetActive(false);
|
UpdateConfirmationDialog.SetActive(false);
|
||||||
UpdateFailedDialog.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)
|
//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();
|
var updatedMeta = VersionAnswer.Data.Where(d => d.Meta.Status == VersionStatus.updated).ToList();
|
||||||
@@ -330,6 +335,7 @@ namespace RothenburgAR.Updater
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
UpdateCompletedDialog.SetActive(false);
|
||||||
downloadEndedTime = DateTime.Now.AddSeconds(1);
|
downloadEndedTime = DateTime.Now.AddSeconds(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user