Ensure .Close runs on UI thread

This commit is contained in:
John Lewin 2016-07-18 10:55:29 -07:00
parent 3a5073a8fc
commit c5e4597f7f
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ namespace MatterHackers.MatterControl
{
if (!WizardWindow.HasBeenClosed)
{
WizardWindow.Close();
UiThread.RunOnIdle(WizardWindow.Close);
}
}, ref unregisterEvents);
}