This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -60,20 +60,6 @@ public override void InitializeView(IView parent)
60
60
targetMode = mode ;
61
61
}
62
62
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
-
77
63
public override void OnEnable ( )
78
64
{
79
65
base . OnEnable ( ) ;
@@ -97,6 +83,20 @@ public override void OnDataUpdate()
97
83
MaybeUpdateData ( ) ;
98
84
}
99
85
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
+
100
100
private void MaybeUpdateData ( )
101
101
{
102
102
if ( localAndRemoteBranchListHasUpdate )
You can’t perform that action at this time.
0 commit comments