Convert some accessors to use GetValue<T>

This commit is contained in:
John Lewin 2016-06-15 16:15:47 -07:00
parent 34cfafbada
commit 814763ed72
23 changed files with 46 additions and 121 deletions

View file

@ -175,7 +175,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
// If we have support enabled and are using an extruder other than 0 for it
if (ActiveSliceSettings.Instance.SupportEnabled())
if (ActiveSliceSettings.Instance.GetValue<bool>("support_material"))
{
if (ActiveSliceSettings.Instance.SupportExtruder() != 0)
{
@ -185,7 +185,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
// If we have raft enabled and are using an extruder other than 0 for it
if (ActiveSliceSettings.Instance.RaftEnabled())
if (ActiveSliceSettings.Instance.GetValue<bool>("create_raft"))
{
if (ActiveSliceSettings.Instance.RaftExtruder() != 0)
{