@@ -373,14 +373,14 @@ private void HandleBranchCacheUpdatedEvent(CacheUpdateEvent cacheUpdateEvent)
373
373
374
374
private void RepositoryManager_OnCurrentRemoteUpdated ( ConfigRemote ? remote )
375
375
{
376
- if ( ! Nullable . Equals ( CurrentConfigRemote , remote ) )
377
- {
378
- new ActionTask ( CancellationToken . None , ( ) => {
379
- CurrentConfigRemote = remote ;
380
- CurrentRemote = GetGitRemote ( remote . Value ) ;
381
- UpdateRepositoryInfo ( ) ;
382
- } ) { Affinity = TaskAffinity . UI } . Start ( ) ;
383
- }
376
+ new ActionTask ( CancellationToken . None , ( ) => {
377
+ if ( ! Nullable . Equals ( CurrentConfigRemote , remote ) )
378
+ {
379
+ CurrentConfigRemote = remote ;
380
+ CurrentRemote = GetGitRemote ( remote . Value ) ;
381
+ UpdateRepositoryInfo ( ) ;
382
+ }
383
+ } ) { Affinity = TaskAffinity . UI } . Start ( ) ;
384
384
}
385
385
386
386
private void RepositoryManager_OnRepositoryUpdated ( )
@@ -416,16 +416,16 @@ private void UpdateLocks()
416
416
417
417
private void RepositoryManager_OnCurrentBranchUpdated ( ConfigBranch ? branch )
418
418
{
419
- if ( ! Nullable . Equals ( CurrentConfigBranch , branch ) )
420
- {
421
- new ActionTask ( CancellationToken . None , ( ) => {
422
- var currentBranch = branch != null ? ( GitBranch ? ) GetLocalGitBranch ( branch . Value ) : null ;
419
+ new ActionTask ( CancellationToken . None , ( ) => {
420
+ if ( ! Nullable . Equals ( CurrentConfigBranch , branch ) )
421
+ {
422
+ var currentBranch = branch != null ? ( GitBranch ? ) GetLocalGitBranch ( branch . Value ) : null ;
423
423
424
- CurrentConfigBranch = branch ;
425
- CurrentBranch = currentBranch ;
426
- UpdateLocalBranches ( ) ;
427
- } ) { Affinity = TaskAffinity . UI } . Start ( ) ;
428
- }
424
+ CurrentConfigBranch = branch ;
425
+ CurrentBranch = currentBranch ;
426
+ UpdateLocalBranches ( ) ;
427
+ }
428
+ } ) { Affinity = TaskAffinity . UI } . Start ( ) ;
429
429
}
430
430
431
431
private void RepositoryManager_OnLocalBranchUpdated ( string name )
0 commit comments