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

Commit 257ffc5

Browse files
committed
Handle parsing of child entries in the changes view better
Fixes #257
1 parent ccfeef3 commit 257ffc5

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)