Planner: Moved the call to fetch new parameter meta data to where it is determined if the planner requires an update.
This commit is contained in:
parent
dfe2d34822
commit
03094a91b6
@ -20,6 +20,7 @@ using System.Globalization;
|
||||
using System.Threading;
|
||||
using System.Net.Sockets;
|
||||
using ArdupilotMega.Utilities;
|
||||
using ArdupilotMega.Utilities.Constants;
|
||||
using IronPython.Hosting;
|
||||
using log4net;
|
||||
using ArdupilotMega.Controls;
|
||||
@ -1230,9 +1231,6 @@ namespace ArdupilotMega
|
||||
log.Error("Update check failed", ex);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Move this to a more appropriate place, like right after CheckForUpdate();
|
||||
ParameterMetaDataParser.GetParameterInformation();
|
||||
}
|
||||
|
||||
|
||||
@ -1742,6 +1740,9 @@ namespace ArdupilotMega
|
||||
{
|
||||
((ProgressReporterDialogue)sender).UpdateProgressAndStatus(-1, "Getting Base URL");
|
||||
MainV2.updateCheckMain((ProgressReporterDialogue)sender);
|
||||
|
||||
// TODO: Is this the right place?
|
||||
ParameterMetaDataParser.GetParameterInformation();
|
||||
}
|
||||
|
||||
private static bool updateCheck(ProgressReporterDialogue frmProgressReporter, string baseurl, string subdir)
|
||||
|
Loading…
Reference in New Issue
Block a user