Refactoring print settings strings into SettingsKey string consts
Made a new ReloadUiWhenChanged propertie for Properties.json
This commit is contained in:
parent
c1c82c0999
commit
6ee626e794
24 changed files with 133 additions and 130 deletions
|
|
@ -178,7 +178,7 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
temperatureWidgets.AddChild(extruderTemperatureWidget);
|
||||
|
||||
bedTemperatureWidget = new TemperatureWidgetBed();
|
||||
if (ActiveSliceSettings.Instance.GetValue<bool>("has_heated_bed"))
|
||||
if (ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.has_heated_bed))
|
||||
{
|
||||
temperatureWidgets.AddChild(bedTemperatureWidget);
|
||||
}
|
||||
|
|
@ -802,7 +802,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue