private void SignedIn(bool isSignedIn)
{
IsSignedIn.Value = isSignedIn;
_messagesService.AddMessageAsync("Connected to Altitude Angel.");
if (isSignedIn)
{
_messagesService.AddMessageAsync("Loading map data...")
.ContinueWith(async i =>
{
try
{
await UpdateMapData(_missionPlanner.FlightDataMap);
await _messagesService.AddMessageAsync("Map data loaded");
}
catch
{
}
});
// Should really move this to a manual trigger or on arm as the map might not be in the correct position
// And we only want to do it occasionally
/*
_messagesService.AddMessageAsync("Loading weather info...")
.ContinueWith(async i =>
{
try
{
await UpdateWeatherData(_missionPlanner.FlightDataMap.GetCenter());
await _messagesService.AddMessageAsync("Weather loaded");
}
catch
{
}
});*/
}
}