src: Bug fixes
* fixed - to _ in color schemes * fixed yoda talk in Tutorial * fixed graph node with no children but qualifier has expand toggle * added placeholder and file filter for maven detection on MacOS * fixed NameHierarchy delimiter wrong in SearchIndex
This commit is contained in:
@@ -1332,6 +1332,7 @@ void GraphController::addExpandToggleNode(DummyNode* node) const
|
||||
expandNode->visible = true;
|
||||
expandNode->expanded = node->expanded;
|
||||
|
||||
bool hasVisibleSubNode = false;
|
||||
for (size_t i = 0; i < node->subNodes.size(); i++)
|
||||
{
|
||||
DummyNode* subNode = node->subNodes[i].get();
|
||||
@@ -1343,16 +1344,25 @@ void GraphController::addExpandToggleNode(DummyNode* node) const
|
||||
continue;
|
||||
}
|
||||
|
||||
if (subNode->isQualifierNode())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
for (std::shared_ptr<DummyNode> subSubNode : subNode->subNodes)
|
||||
{
|
||||
if (!subSubNode->visible)
|
||||
{
|
||||
expandNode->invisibleSubNodeCount++;
|
||||
}
|
||||
else
|
||||
{
|
||||
hasVisibleSubNode = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (expandNode->isExpanded() || expandNode->invisibleSubNodeCount)
|
||||
if ((expandNode->isExpanded() && hasVisibleSubNode) || expandNode->invisibleSubNodeCount)
|
||||
{
|
||||
node->subNodes.push_back(expandNode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user