Consolidate line end logic into PrintLineEnd()
This commit is contained in:
parent
ca1911e1ea
commit
eac548c041
2 changed files with 19 additions and 12 deletions
|
|
@ -185,8 +185,8 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public override void OnClosed(EventArgs e)
|
||||
{
|
||||
if (printer.Connection.CommunicationState == PrinterCommunication.CommunicationStates.Printing ||
|
||||
printer.Connection.CommunicationState == PrinterCommunication.CommunicationStates.Paused)
|
||||
if (printer.Connection.CommunicationState == CommunicationStates.Printing ||
|
||||
printer.Connection.CommunicationState == CommunicationStates.Paused)
|
||||
{
|
||||
printer.CancelPrint();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue