Make sure we don't keep a reference around to widgets through the OnIdle call back.

This commit is contained in:
larsbrubaker 2014-02-27 16:41:52 -08:00
parent 5f72d64f73
commit d72836f3a0
3 changed files with 17 additions and 4 deletions

View file

@ -122,7 +122,11 @@ namespace MatterHackers.MatterControl
UpdatePrintStatus();
}
UiThread.RunOnIdle(OnIdle);
if (!WidgetHasBeenClosed)
{
UiThread.RunOnIdle(OnIdle);
}
}
private void UpdatePrintStatus()