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)
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 )
You can’t perform that action at this time.
0 commit comments