diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-03-30 19:41:54 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-03-30 19:41:54 +0300 |
| commit | 3dcf3242705a7522617d4b5f7ca4d9b918e48ca5 (patch) | |
| tree | 29e6083fbe1f9778e14e9641bffcb7d4765e8b39 /Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | |
| parent | c61d12100372054de07f6201c27c7755c7be35e8 (diff) | |
| download | Tango-3dcf3242705a7522617d4b5f7ca4d9b918e48ca5.tar.gz Tango-3dcf3242705a7522617d4b5f7ca4d9b918e48ca5.zip | |
Eureka PPC. GoToJob, Notifications, LengthWothSpool.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index c5841a8b5..92fc9cc1c 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -2884,12 +2884,12 @@ namespace Tango.Integration.Operation await fileUploadHandler.Cancel(); fileUploadHandler = null; LogManager.Log("Job upload canceled."); - OnPrintingAborted(handler, jobForJobRun); - handler.RaiseCanceled(); if (Status != MachineStatuses.Disconnected) { UpdateStatus(MachineStatuses.ReadyToDye); } + OnPrintingAborted(handler, jobForJobRun); + handler.RaiseCanceled(); } else { @@ -2899,12 +2899,14 @@ namespace Tango.Integration.Operation } SaveLastJobLiquidQuantities(clonedJob, originalJob.Machine.Configuration, processParameters, handler); - OnPrintingAborted(handler, jobForJobRun); - handler.RaiseCanceled(); + if (Status != MachineStatuses.Disconnected) { UpdateStatus(MachineStatuses.ReadyToDye); } + + OnPrintingAborted(handler, jobForJobRun); + handler.RaiseCanceled(); } } } |
