Merge pull request #961 from larsbrubaker/master

Made an enum SettingsKey so the available settings names are discover…
This commit is contained in:
Lars Brubaker 2016-06-16 07:36:52 -07:00 committed by GitHub
commit 9d401e1d9f
4 changed files with 38 additions and 24 deletions

View file

@ -356,7 +356,7 @@ namespace MatterHackers.MatterControl.ActionBar
{
if (ActiveSliceSettings.Instance != null)
{
if (ActiveSliceSettings.Instance.GetValue<bool>("has_heated_bed"))
if (ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.has_heated_bed))
{
bedTemperatureWidget.Visible = true;
}
@ -594,7 +594,7 @@ namespace MatterHackers.MatterControl.ActionBar
tempWidgets.AddChild(extruderTemperatureWidget);
tempWidgets.AddChild(new GuiWidget(6, 6));
if (ActiveSliceSettings.Instance.GetValue<bool>("has_heated_bed"))
if (ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.has_heated_bed))
{
tempWidgets.AddChild(bedTemperatureWidget);
}