Revise ReportProgressRatio implementation

This commit is contained in:
John Lewin 2017-07-14 13:55:02 -07:00
parent 990539d979
commit 4eb8ebe254
21 changed files with 95 additions and 87 deletions

View file

@ -30,6 +30,7 @@ either expressed or implied, of the FreeBSD Project.
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using MatterHackers.Agg;
using MatterHackers.DataConverters3D;
using MatterHackers.GCodeVisualizer;
@ -190,7 +191,7 @@ namespace MatterHackers.MatterControl.PrintQueue
if (ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.print_leveling_enabled))
{
GCodeMemoryFile unleveledGCode = new GCodeMemoryFile(savedGcodeFileName);
GCodeMemoryFile unleveledGCode = new GCodeMemoryFile(savedGcodeFileName, CancellationToken.None);
for (int j = 0; j < unleveledGCode.LineCount; j++)
{