IP Selector dropdown displays current value when created
This commit is contained in:
parent
d1641a19c0
commit
8ac25a5428
1 changed files with 3 additions and 1 deletions
|
|
@ -32,7 +32,9 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
base.Initialize(tabIndex);
|
||||
bool canChangeComPort = !printer.Connection.PrinterIsConnected && printer.Connection.CommunicationState != CommunicationStates.AttemptingToConnect;
|
||||
dropdownList = new DropDownList("Manual".Localize(), ActiveTheme.Instance.PrimaryTextColor, maxHeight: 200)
|
||||
//This setting defaults to Manual
|
||||
var selectedMachine = printer.Settings.GetValue(SettingsKey.selector_ip_address);
|
||||
dropdownList = new DropDownList(selectedMachine, ActiveTheme.Instance.PrimaryTextColor, maxHeight: 200)
|
||||
{
|
||||
ToolTipText = HelpText,
|
||||
Margin = new BorderDouble(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue