Trying to get things to behave nicely with the requirement that GuiWidgets clear their parent when the are closed or removed.
This commit is contained in:
parent
6ce3533668
commit
bff2e01fad
3 changed files with 21 additions and 1 deletions
|
|
@ -64,6 +64,11 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
protected override void AddChildElements()
|
||||
{
|
||||
if (HelpTextWidget.Instance.Parent != null)
|
||||
{
|
||||
HelpTextWidget.Instance.Parent.RemoveChild(HelpTextWidget.Instance);
|
||||
}
|
||||
|
||||
this.AddChild(HelpTextWidget.Instance);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue