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

Commit c9711a9

Browse files
authored
Merge pull request #264 from github-for-unity/fixes/257-meta-child-parsing
Handle parsing of child entries in the changes view better
2 parents 4fa9880 + 257ffc5 commit c9711a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ChangesetTreeView.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ private void TreeNode(FileTreeNode node)
121121
var isFolderForMeta = false;
122122
if (node.Children.Count() == 1)
123123
{
124-
isFolderForMeta = node.Children.First().Label.Substring(node.Label.Length).Equals(".meta");
124+
var parentLabel = node.Label;
125+
var childLabel = node.Children.First().Label;
126+
isFolderForMeta = childLabel.EndsWith(".meta");
125127
}
126128

127129
GUILayout.BeginHorizontal();

0 commit comments

Comments
 (0)