Simplify
This commit is contained in:
parent
fd2fd1a9d7
commit
2e9aa096e2
1 changed files with 4 additions and 7 deletions
|
|
@ -407,7 +407,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
if (TabContent is PrinterTabPage printerTab
|
||||
if (this.TabContent is PrinterTabPage printerTab
|
||||
&& printerTab.printer.Connection.PrinterIsPrinting)
|
||||
{
|
||||
StyledMessageBox.ShowMessageBox(
|
||||
|
|
@ -428,13 +428,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
"Cancel Print".Localize(),
|
||||
"Continue Printing".Localize());
|
||||
}
|
||||
else // need to handle asking about saving a
|
||||
else
|
||||
{
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
this.parentTabControl.RemoveTab(this);
|
||||
this.CloseClicked?.Invoke(this, null);
|
||||
});
|
||||
this.parentTabControl.RemoveTab(this);
|
||||
this.CloseClicked?.Invoke(this, null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue