Created a UserSettingsKey and SystemSettingsKey

Moved some settings into this, lots more to do
This commit is contained in:
Lars Brubaker 2016-08-30 10:30:55 -07:00
parent 8f8afc5681
commit cd7406d82b
14 changed files with 64 additions and 48 deletions

View file

@ -60,16 +60,16 @@ namespace MatterHackers.MatterControl.VersionManagement
public LatestVersionRequest()
{
string feedType = UserSettings.Instance.get("UpdateFeedType");
string feedType = UserSettings.Instance.get(UserSettingsKey.UpdateFeedType);
if (feedType == null)
{
feedType = "release";
UserSettings.Instance.set("UpdateFeedType", feedType);
UserSettings.Instance.set(UserSettingsKey.UpdateFeedType, feedType);
}
requestValues["ProjectToken"] = VersionInfo.Instance.ProjectToken;
//requestValues["TestCode"] = "100"; // will cause response of update available and not required
//requestValues["TestCode"] = "101"; // will cause response of update available and required
requestValues["UpdateFeedType"] = feedType;
requestValues[UserSettingsKey.UpdateFeedType] = feedType;
uri = $"{MatterControlApplication.MCWSBaseUri}/api/1/get-current-release-version";
}