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

Commit 656007e

Browse files
Preventing an error that occurs where there are no items to display
1 parent 412ff10 commit 656007e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ public Rect Render(Rect rect, Vector2 scroll, Action<TreeNode> singleClick = nul
213213
}
214214
}
215215

216-
Unindent();
216+
if (DisplayRootNode)
217+
{
218+
Unindent();
219+
}
217220

218221
return rect;
219222
}

0 commit comments

Comments
 (0)