Close non-child owned widget in OnClosed

This commit is contained in:
John Lewin 2018-11-15 21:13:30 -08:00
parent 06e79394f2
commit 812677d178

View file

@ -95,6 +95,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
base.OnClick(mouseEvent);
}
public override void OnClosed(EventArgs e)
{
this.PopupContent?.Close();
base.OnClosed(e);
}
public void ShowPopup()
{
if (PopupLayoutEngine == null)