Update feed type is now determined by application setting.

This commit is contained in:
Kevin Pope 2014-04-16 12:29:20 -07:00
parent 4a4e189e5f
commit 6f5e062aa9

View file

@ -270,8 +270,14 @@ namespace MatterHackers.MatterControl.VersionManagement
{
public RequestLatestVersion()
{
string feedType = ApplicationSettings.Instance.get("UpdateFeedType");
if (feedType == null)
{
feedType = "release";
ApplicationSettings.Instance.set("UpdateFeedType", feedType);
}
requestValues["ProjectToken"] = VersionInfo.Instance.ProjectToken;
requestValues["FeedType"] = "pre-release";
requestValues["FeedType"] = feedType;
uri = "https://mattercontrol.appspot.com/api/1/get-current-release-version";
}