Use UiThread.ClearInterval

This commit is contained in:
John Lewin 2018-11-13 16:52:23 -08:00
parent febe76e55d
commit 0d066881a4
13 changed files with 35 additions and 53 deletions

View file

@ -81,7 +81,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
zPosition.Text = "Z: {0:0.00}".FormatWith(destinationPosition.Z);
}, .3);
this.Closed += (s, e) => runningInterval.Continue = false;
this.Closed += (s, e) => UiThread.ClearInterval(runningInterval);
zButtonsAndInfo.AddChild(zPosition);