Close but do not delete printer
- Issue MatterHackers/MCCentral#2245 Printer tab close button deletes printer
This commit is contained in:
parent
99a2e641fb
commit
3b91022d3a
1 changed files with 1 additions and 5 deletions
|
|
@ -249,11 +249,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
if (sender is ITab tab)
|
||||
{
|
||||
this.RemoveTab(sender as ITab);
|
||||
|
||||
if (tab.TabContent is PrinterTabPage printerTab)
|
||||
{
|
||||
printerTab.printer.Settings.Helpers.SetMarkedForDelete(true);
|
||||
}
|
||||
ApplicationController.Instance.ClearActivePrinter();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue