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

Commit aff4698

Browse files
Moving method
1 parent 58a1e09 commit aff4698

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,6 @@ public override void InitializeView(IView parent)
6060
targetMode = mode;
6161
}
6262

63-
private void RepositoryOnLocalAndRemoteBranchListChanged(CacheUpdateEvent cacheUpdateEvent)
64-
{
65-
if (!lastLocalAndRemoteBranchListChangedEvent.Equals(cacheUpdateEvent))
66-
{
67-
new ActionTask(TaskManager.Token, () =>
68-
{
69-
lastLocalAndRemoteBranchListChangedEvent = cacheUpdateEvent;
70-
localAndRemoteBranchListHasUpdate = true;
71-
Redraw();
72-
})
73-
{ Affinity = TaskAffinity.UI }.Start();
74-
}
75-
}
76-
7763
public override void OnEnable()
7864
{
7965
base.OnEnable();
@@ -97,6 +83,20 @@ public override void OnDataUpdate()
9783
MaybeUpdateData();
9884
}
9985

86+
private void RepositoryOnLocalAndRemoteBranchListChanged(CacheUpdateEvent cacheUpdateEvent)
87+
{
88+
if (!lastLocalAndRemoteBranchListChangedEvent.Equals(cacheUpdateEvent))
89+
{
90+
new ActionTask(TaskManager.Token, () =>
91+
{
92+
lastLocalAndRemoteBranchListChangedEvent = cacheUpdateEvent;
93+
localAndRemoteBranchListHasUpdate = true;
94+
Redraw();
95+
})
96+
{ Affinity = TaskAffinity.UI }.Start();
97+
}
98+
}
99+
100100
private void MaybeUpdateData()
101101
{
102102
if (localAndRemoteBranchListHasUpdate)

0 commit comments

Comments
 (0)