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:
parent
d258b60bb1
commit
b21fafb0be
1 changed files with 0 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue