ListView/library widget should not have coupling to specific printer

- Containers might need to reload on printer change but not listview
This commit is contained in:
John Lewin 2017-09-17 13:12:41 -07:00
parent d258b60bb1
commit b21fafb0be

View file

@ -70,17 +70,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
context.ContainerChanged += ActiveContainer_Changed;
context.ContainerReloaded += ActiveContainer_Reloaded;
bool printerConnected = false;
PrinterConnection.Instance.CommunicationStateChanged.RegisterEvent((s, e) =>
{
bool isConnected = PrinterConnection.Instance.PrinterIsConnected;
if (printerConnected != isConnected)
{
DisplayContainerContent(ActiveContainer);
printerConnected = isConnected;
}
}, ref unregisterEvents);
}
public bool ShowItems { get; set; } = true;