improving item button logic

fix spelling
This commit is contained in:
Lars Brubaker 2021-02-05 17:52:19 -08:00
parent 90934aa04f
commit 2026bb220c
9 changed files with 18 additions and 11 deletions

View file

@ -54,7 +54,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
: base(theme)
{
this.nextButtonEnabled = nextButtonEnabled;
this.ExistingPrinterNames = ProfileManager.Instance.ActiveProfiles.Select(p => p.Name).ToList();
this.ExistingPrinterNames = new HashSet<string>(ProfileManager.Instance.ActiveProfiles.Select(p => p.Name));
this.Name = "AddPrinterWidget";
horizontalSplitter.Panel2.Padding = theme.DefaultContainerPadding;
@ -166,7 +166,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
}
}
public IReadOnlyList<string> ExistingPrinterNames { get; private set; }
public HashSet<string> ExistingPrinterNames { get; private set; }
public TextWidget PrinterNameError { get; private set; }