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

Commit 98ca39f

Browse files
committed
Use ITreeData to represent data so that the Tree object can be reused in other views
1 parent 4cfcb06 commit 98ca39f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ private void BuildTree()
162162
treeRemotes.RootFolderIcon = Styles.RootFolderIcon;
163163
treeRemotes.FolderIcon = Styles.FolderIcon;
164164

165-
treeLocals.Load(localBranches, LocalTitle);
166-
treeRemotes.Load(remoteBranches, RemoteTitle);
165+
treeLocals.Load(localBranches.Cast<ITreeData>(), LocalTitle);
166+
treeRemotes.Load(remoteBranches.Cast<ITreeData>(), RemoteTitle);
167167
Redraw();
168168
}
169169

@@ -490,7 +490,7 @@ private Hashtable Folders
490490
}
491491
}
492492

493-
public void Load(IEnumerable<GitBranch> data, string title)
493+
public void Load(IEnumerable<ITreeData> data, string title)
494494
{
495495
foldersKeys.Clear();
496496
Folders.Clear();

0 commit comments

Comments
 (0)