GuiWiget Children working as a SafeList

This commit is contained in:
LarsBrubaker 2019-06-28 22:22:58 -07:00 committed by jlewin
parent 106db7e7f1
commit 58e77cfe60
40 changed files with 104 additions and 102 deletions

View file

@ -55,11 +55,8 @@ namespace MatterHackers.MatterControl
if (settingsToImport.QualityLayers.Count == 0 && settingsToImport.MaterialLayers.Count == 0)
{
// Only main setting so don't ask what to merge just do it.
UiThread.RunOnIdle(() =>
{
DisplayFailedToImportMessage(settingsFilePath);
this.Parents<SystemWindow>().First().Close();
});
DisplayFailedToImportMessage(settingsFilePath);
this.Parents<SystemWindow>().First().Close();
}
this.settingsFilePath = settingsFilePath;