Close connection on printer tab close
- Issue MatterHackers/MCCentral#4752 Printer still connected and printing after tab is closed
This commit is contained in:
parent
b16c13bec0
commit
bedc0ab413
1 changed files with 3 additions and 0 deletions
|
|
@ -457,6 +457,9 @@ namespace MatterHackers.MatterControl
|
|||
// Actually clear printer
|
||||
ProfileManager.Instance.ClosePrinter(printer.Settings.ID);
|
||||
|
||||
// Shutdown the printer connection
|
||||
printer.Connection.Disable();
|
||||
|
||||
if (allowChangedEvent)
|
||||
{
|
||||
if (this.Workspaces.FirstOrDefault(w => w.Printer?.Settings.ID == printer.Settings.ID) is PartWorkspace workspace)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue