Add base type to Inspector results
This commit is contained in:
parent
f9441ab687
commit
375e200ab5
2 changed files with 5 additions and 11 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 1eac03fda480f38e14f642a95ac0778831ed0882
|
||||
Subproject commit d61e235bb8ab05e9980c0f18c51be28d08d7f45d
|
||||
|
|
@ -296,17 +296,11 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
private string BuildDefaultName(GuiWidget widget)
|
||||
{
|
||||
string nameToWrite = "";
|
||||
if (!string.IsNullOrEmpty(widget.Name))
|
||||
{
|
||||
nameToWrite += $"{widget.GetType().Name} - {widget.Name}";
|
||||
}
|
||||
else
|
||||
{
|
||||
nameToWrite += $"{widget.GetType().Name}";
|
||||
}
|
||||
var type = widget.GetType();
|
||||
string baseType = type == typeof(GuiWidget) || type.BaseType == typeof(GuiWidget) ? "" : $":{type.BaseType.Name}";
|
||||
string controlName = string.IsNullOrEmpty(widget.Name) ? "" : $" - '{widget.Name}'";
|
||||
|
||||
return nameToWrite;
|
||||
return $"{type.Name}{baseType}{controlName}";
|
||||
}
|
||||
|
||||
private string BuildDefaultName(IObject3D item)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue