cleaning ui

This commit is contained in:
Lars Brubaker 2023-03-23 14:03:49 -07:00
parent 4abaeb49e2
commit 6163482a58
2 changed files with 6 additions and 2 deletions

View file

@ -46,7 +46,7 @@ namespace MatterHackers.MatterControl.DesignTools
{
}
public void CreateWidgetIfRequired(IObject3D item, Object3DControlsLayer controlLayer, string title)
public bool CreateWidgetIfRequired(IObject3D item, Object3DControlsLayer controlLayer, string title)
{
if (WindowWidget == null
|| WindowWidget.Parents<SystemWindow>().Count() == 0)
@ -68,7 +68,11 @@ namespace MatterHackers.MatterControl.DesignTools
controlLayer.GuiSurface.AddChild(WindowWidget);
controlLayer.GuiSurface.AfterDraw += GuiSurface_AfterDraw;
return true;
}
return false;
}
private void GuiSurface_AfterDraw(object sender, DrawEventArgs e)

@ -1 +1 @@
Subproject commit 56c48da395b850d67732e984d14c3666f78228ff
Subproject commit 0c10c4ad5d84538d71022c0342fe9cfba263da20