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

Commit 91d0cb2

Browse files
Removing some copy pasta code that handles switch focus between trees in BranchesView
1 parent 30c6588 commit 91d0cb2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,13 @@ private void OnTreeGUI(Rect rect)
113113
treeChanges.ActiveTreeNodeStyle = Styles.TreeNodeActive;
114114
}
115115

116-
var treeHadFocus = treeChanges.SelectedNode != null;
117-
118116
rect = treeChanges.Render(rect, scroll,
119117
node => { },
120118
node => {
121119
},
122120
node => {
123121
});
124122

125-
if (treeHadFocus && treeChanges.SelectedNode == null)
126-
treeChanges.Focus();
127-
else if (!treeHadFocus && treeChanges.SelectedNode != null)
128-
treeChanges.Blur();
129-
130123
if (treeChanges.RequiresRepaint)
131124
Redraw();
132125

0 commit comments

Comments
 (0)