Remove redundant event listener action
This commit is contained in:
parent
306548cc83
commit
a3d2a6bc49
1 changed files with 2 additions and 13 deletions
|
|
@ -158,23 +158,12 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
InventoryTreeView.CreatePrinterProfilesTree(printersNode, theme);
|
||||
this.Invalidate();
|
||||
}
|
||||
|
||||
if (settingsName == SettingsKey.printer_name)
|
||||
{
|
||||
InventoryTreeView.CreatePrinterProfilesTree(printersNode, theme);
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
PrinterSettings.AnyPrinterSettingChanged += AnyPrinterSettingChanged;
|
||||
this.Closed -= AnyPrinterSettingChanged;
|
||||
|
||||
//// Rebuild the droplist any time the ActivePrinter changes
|
||||
//ApplicationController.Instance.ActivePrinterChanged.RegisterEvent((s, e) =>
|
||||
//{
|
||||
// this.Rebuild();
|
||||
//}, ref unregisterEvents);
|
||||
|
||||
// Rebuild the droplist any time the Profiles list changes
|
||||
// Rebuild the treeview anytime the Profiles list changes
|
||||
ProfileManager.ProfilesListChanged.RegisterEvent((s, e) =>
|
||||
{
|
||||
InventoryTreeView.CreatePrinterProfilesTree(printersNode, theme);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue