Added Network Printing checks in Edit Printer Settings Page
This commit is contained in:
parent
025b135a7d
commit
701dd0bf48
2 changed files with 11 additions and 1 deletions
|
|
@ -54,7 +54,16 @@ namespace MatterHackers.MatterControl
|
|||
AddNameSetting(SettingsKey.printer_name, contentRow, ref tabIndex);
|
||||
AddNameSetting(SettingsKey.auto_connect, contentRow, ref tabIndex);
|
||||
AddNameSetting(SettingsKey.baud_rate, contentRow, ref tabIndex);
|
||||
AddNameSetting(SettingsKey.com_port, contentRow, ref tabIndex);
|
||||
//Check if networked printing is on before displaying comport or ip/port
|
||||
if(ActiveSliceSettings.Instance.GetValue("enable_network_printing")=="1")
|
||||
{
|
||||
AddNameSetting("ip_address", contentRow, ref tabIndex);
|
||||
AddNameSetting("ip_port", contentRow, ref tabIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
AddNameSetting(SettingsKey.com_port, contentRow, ref tabIndex);
|
||||
}
|
||||
|
||||
contentRow.AddChild(new VerticalSpacer());
|
||||
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
public const string windows_driver = nameof(windows_driver);
|
||||
public const string z_can_be_negative = nameof(z_can_be_negative);
|
||||
public const string z_homes_to_max = nameof(z_homes_to_max);
|
||||
public const string enable_network_printing = nameof(enable_network_printing);
|
||||
}
|
||||
|
||||
public class SettingsHelpers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue