Consolidate line end logic into PrintLineEnd()

This commit is contained in:
jlewin 2019-02-26 14:39:59 -08:00
parent ca1911e1ea
commit eac548c041
2 changed files with 19 additions and 12 deletions

View file

@ -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();
}