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 +11
-4
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -251,19 +251,26 @@ private void MaybeUpdateData()
251
251
currentBranch = string . Format ( "[{0}]" , Repository . CurrentBranchName ) ;
252
252
}
253
253
254
- if ( currentStatusEntriesHasUpdate || currentLocksHasUpdate )
254
+ if ( currentLocksHasUpdate )
255
255
{
256
- currentStatusEntriesHasUpdate = false ;
257
- currentLocksHasUpdate = false ;
258
-
259
256
gitLocks = new HashSet < NPath > ( Repository . CurrentLocks . Select ( gitLock => gitLock . Path ) ) ;
257
+ }
258
+
259
+ if ( currentStatusEntriesHasUpdate )
260
+ {
260
261
gitStatusEntries = Repository . CurrentChanges . Where ( x => x . Status != GitFileStatus . Ignored ) . ToList ( ) ;
261
262
262
263
changedFilesText = gitStatusEntries . Count == 0
263
264
? NoChangedFilesLabel
264
265
: gitStatusEntries . Count == 1
265
266
? OneChangedFileLabel
266
267
: String . Format ( ChangedFilesLabel , gitStatusEntries . Count ) ;
268
+ }
269
+
270
+ if ( currentStatusEntriesHasUpdate || currentLocksHasUpdate )
271
+ {
272
+ currentStatusEntriesHasUpdate = false ;
273
+ currentLocksHasUpdate = false ;
267
274
268
275
BuildTree ( ) ;
269
276
}
You can’t perform that action at this time.
0 commit comments