Skip to content

Commit

Permalink
highlight selected node in tree
Browse files Browse the repository at this point in the history
  • Loading branch information
ottojo authored Feb 5, 2024
1 parent 544fce2 commit 513ce94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ bool NodeTree::SortComparator::operator()(const std::shared_ptr<TreeNode> &node1
void visualizeNodeTree(const std::shared_ptr<const TreeNode>& root, std::string &selectedNode) {
if (root->children.empty()) {
// leaf node
if (ImGui::Selectable(root->name.c_str())) {
if (ImGui::Selectable(root->name.c_str(), selectedNode == root->fullName)) {
selectedNode = root->fullName;
}
} else {
Expand Down

0 comments on commit 513ce94

Please sign in to comment.