Converted hard coded strings to SettingsKey

This commit is contained in:
Matt Moening 2016-11-29 12:17:36 -08:00
parent 701dd0bf48
commit b6d34bcdf7
4 changed files with 11 additions and 8 deletions

View file

@ -55,10 +55,10 @@ namespace MatterHackers.MatterControl
AddNameSetting(SettingsKey.auto_connect, contentRow, ref tabIndex);
AddNameSetting(SettingsKey.baud_rate, contentRow, ref tabIndex);
//Check if networked printing is on before displaying comport or ip/port
if(ActiveSliceSettings.Instance.GetValue("enable_network_printing")=="1")
if(ActiveSliceSettings.Instance.GetValue(SettingsKey.enable_network_printing)=="1")
{
AddNameSetting("ip_address", contentRow, ref tabIndex);
AddNameSetting("ip_port", contentRow, ref tabIndex);
AddNameSetting(SettingsKey.ip_address, contentRow, ref tabIndex);
AddNameSetting(SettingsKey.ip_port, contentRow, ref tabIndex);
}
else
{