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:
parent
a45b9dab19
commit
bd79414c34
8 changed files with 77 additions and 84 deletions
|
|
@ -2558,7 +2558,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication
|
|||
activePrintTask.PrintingOffsetZ = (float)babyStepsStream7.Offset.Z;
|
||||
try
|
||||
{
|
||||
Task.Run(() => activePrintTask.Commit());
|
||||
Task.Run(() => activePrintTask?.Commit());
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue