Enable pause/resume on task, remove pause/resume/cancel from bar

- Issue MatterHackers/MCCentral#2407
Extend Tasks.Execute to support custom pause/stop implementations
This commit is contained in:
John Lewin 2017-12-12 17:53:32 -08:00
parent a45b9dab19
commit bd79414c34
8 changed files with 77 additions and 84 deletions

View file

@ -2558,7 +2558,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication
activePrintTask.PrintingOffsetZ = (float)babyStepsStream7.Offset.Z;
try
{
Task.Run(() => activePrintTask.Commit());
Task.Run(() => activePrintTask?.Commit());
}
catch
{