Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 431fa52

Browse files
Merge branch 'enhancements/changes-tree-view-rollup' into enhancements/tree-improvements
# Conflicts: # src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs
2 parents 05c0c93 + 2c577d4 commit 431fa52

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/GitHub.Api/UI/TreeLoader.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,14 @@ public static void Load(ITree tree, IEnumerable<ITreeData> treeDatas)
7777
}
7878
}
7979

80+
var isActive = false;
81+
if (nodePath == treeData.Path)
82+
{
83+
isActive = treeData.IsActive;
84+
}
85+
8086
isSelected = selectedNodePath != null && nodePath == selectedNodePath;
81-
tree.AddNode(path: nodePath, label: label, level: i + displayRootLevel, isFolder: isFolder, isActive: treeData.IsActive, isHidden: nodeIsHidden, isCollapsed: nodeIsCollapsed, isSelected: isSelected);
87+
tree.AddNode(path: nodePath, label: label, level: i + displayRootLevel, isFolder: isFolder, isActive: isActive, isHidden: nodeIsHidden, isCollapsed: nodeIsCollapsed, isSelected: isSelected);
8288
}
8389
}
8490
}

0 commit comments

Comments
 (0)