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

Commit 440175d

Browse files
Preventing instance from getting replaced needlessly
1 parent 821b8dc commit 440175d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class BranchesView : Subview
3939
[NonSerialized] private int listID = -1;
4040
[NonSerialized] private BranchesMode targetMode;
4141

42-
[SerializeField] private BranchesTree treeLocals = new BranchesTree();
43-
[SerializeField] private BranchesTree treeRemotes = new BranchesTree();
42+
[SerializeField] private BranchesTree treeLocals;
43+
[SerializeField] private BranchesTree treeRemotes;
4444
[SerializeField] private BranchesMode mode = BranchesMode.Default;
4545
[SerializeField] private string newBranchName;
4646
[SerializeField] private Vector2 scroll;
@@ -141,7 +141,6 @@ private void BuildTree()
141141
if (treeLocals == null)
142142
{
143143
treeLocals = new BranchesTree();
144-
145144
treeRemotes = new BranchesTree();
146145

147146
UpdateTreeIcons();

0 commit comments

Comments
 (0)