Sync active printer name on change

- Issue MatterHackers/MCCentral#3940
Printer tab and PrinterChooser ignore changes to printer name
This commit is contained in:
John Lewin 2018-08-06 13:17:29 -07:00
parent 14d6e7c907
commit 56fda6df01
3 changed files with 29 additions and 5 deletions

View file

@ -115,6 +115,9 @@ namespace MatterHackers.MatterControl
{
this.MenuItems.Clear();
// Always reset to -1, then search for match below
this.SelectedIndex = -1;
//Add the menu items to the menu itself
foreach (var printer in ProfileManager.Instance.ActiveProfiles.OrderBy(p => p.Name))
{