Close non-child owned widget in OnClosed
This commit is contained in:
parent
06e79394f2
commit
812677d178
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue