Cancel print on wizard close
This commit is contained in:
parent
b2b542904b
commit
f64c4a33a9
1 changed files with 11 additions and 0 deletions
|
|
@ -70,5 +70,16 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
base.OnLoad(args);
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
{
|
||||
if (printer.Connection.CommunicationState == PrinterCommunication.CommunicationStates.Printing ||
|
||||
printer.Connection.CommunicationState == PrinterCommunication.CommunicationStates.Paused)
|
||||
{
|
||||
printer.CancelPrint();
|
||||
}
|
||||
|
||||
base.OnClosed(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue