Show selected control name in title bar

This commit is contained in:
John Lewin 2017-09-23 00:30:07 -07:00
parent c8534e8977
commit bddde78f28

View file

@ -81,6 +81,8 @@ namespace MatterHackers.MatterControl
_inspectedWidget = value;
this.Text = "Inspector" + (string.IsNullOrEmpty(_inspectedWidget?.Name) ? "" : " - " + _inspectedWidget.Name);
if (_inspectedWidget != null)
{
ancestryTree = new HashSet<GuiWidget>(_inspectedWidget.Parents<GuiWidget>());