mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-24 21:38:59 +08:00
If the menu is null, the treeview should not be displayed.
This commit is contained in:
parent
7367418de8
commit
adb4d6bd47
@ -159,6 +159,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
.Where(child => !this._visitedMenuStack.Contains(child.menu));
|
.Where(child => !this._visitedMenuStack.Contains(child.menu));
|
||||||
foreach (MenuTree.ChildElement child in children)
|
foreach (MenuTree.ChildElement child in children)
|
||||||
{
|
{
|
||||||
|
if (child.menu == null) continue;
|
||||||
string displayName = child.installer == null ?
|
string displayName = child.installer == null ?
|
||||||
$"{child.menuName} ({child.menu.name})" :
|
$"{child.menuName} ({child.menu.name})" :
|
||||||
$"{child.menuName} ({child.menu.name}) InstallerObject : {child.installer.name}";
|
$"{child.menuName} ({child.menu.name}) InstallerObject : {child.installer.name}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user