@@ -51,8 +51,8 @@ class HistoryView : Subview
51
51
[ SerializeField ] private bool hasRemote ;
52
52
[ SerializeField ] private bool hasItemsToCommit ;
53
53
54
- [ SerializeField ] private CacheUpdateEvent branchUpdateEvent ;
55
- [ NonSerialized ] private bool branchCacheHasUpdate ;
54
+ [ SerializeField ] private CacheUpdateEvent repositoryInfoUpdateEvent ;
55
+ [ NonSerialized ] private bool repositoryInfoHasUpdate ;
56
56
57
57
[ SerializeField ] private CacheUpdateEvent gitStatusUpdateEvent ;
58
58
[ NonSerialized ] private bool gitStatusCacheHasUpdate ;
@@ -79,7 +79,7 @@ public override void OnEnable()
79
79
{
80
80
Repository . CheckGitLogCacheEvent ( gitLogCacheUpdateEvent ) ;
81
81
Repository . CheckGitStatusCacheEvent ( gitStatusUpdateEvent ) ;
82
- Repository . CheckBranchCacheEvent ( branchUpdateEvent ) ;
82
+ Repository . CheckRepositoryInfoCacheEvent ( repositoryInfoUpdateEvent ) ;
83
83
}
84
84
}
85
85
@@ -128,14 +128,14 @@ private void Repository_GitLogCacheUpdated(CacheUpdateEvent cacheUpdateEvent)
128
128
}
129
129
}
130
130
131
- private void Repository_BranchCacheUpdated ( CacheUpdateEvent cacheUpdateEvent )
131
+ private void Repository_RepositoryInfoCacheUpdated ( CacheUpdateEvent cacheUpdateEvent )
132
132
{
133
- if ( ! branchUpdateEvent . Equals ( cacheUpdateEvent ) )
133
+ if ( ! repositoryInfoUpdateEvent . Equals ( cacheUpdateEvent ) )
134
134
{
135
135
new ActionTask ( TaskManager . Token , ( ) =>
136
136
{
137
- branchUpdateEvent = cacheUpdateEvent ;
138
- branchCacheHasUpdate = true ;
137
+ repositoryInfoUpdateEvent = cacheUpdateEvent ;
138
+ repositoryInfoHasUpdate = true ;
139
139
Redraw ( ) ;
140
140
} )
141
141
{ Affinity = TaskAffinity . UI } . Start ( ) ;
@@ -149,7 +149,7 @@ private void AttachHandlers(IRepository repository)
149
149
150
150
repository . GitStatusCacheUpdated += Repository_GitStatusCacheUpdated ;
151
151
repository . GitLogCacheUpdated += Repository_GitLogCacheUpdated ;
152
- repository . BranchCacheUpdated += Repository_BranchCacheUpdated ;
152
+ repository . RepositoryInfoCacheUpdated += Repository_RepositoryInfoCacheUpdated ;
153
153
}
154
154
155
155
private void DetachHandlers ( IRepository repository )
@@ -159,17 +159,17 @@ private void DetachHandlers(IRepository repository)
159
159
160
160
repository . GitStatusCacheUpdated -= Repository_GitStatusCacheUpdated ;
161
161
repository . GitLogCacheUpdated -= Repository_GitLogCacheUpdated ;
162
- repository . BranchCacheUpdated -= Repository_BranchCacheUpdated ;
162
+ repository . RepositoryInfoCacheUpdated -= Repository_RepositoryInfoCacheUpdated ;
163
163
}
164
164
165
165
private void MaybeUpdateData ( )
166
166
{
167
167
if ( Repository == null )
168
168
return ;
169
169
170
- if ( branchCacheHasUpdate )
170
+ if ( repositoryInfoHasUpdate )
171
171
{
172
- branchCacheHasUpdate = false ;
172
+ repositoryInfoHasUpdate = false ;
173
173
174
174
var currentRemote = Repository . CurrentRemote ;
175
175
hasRemote = currentRemote . HasValue ;
0 commit comments