@@ -382,7 +382,7 @@ private void HandleBranchCacheUpdatedEvent(CacheUpdateEvent cacheUpdateEvent)
382
382
383
383
private void RepositoryManagerOnCurrentBranchUpdated ( ConfigBranch ? branch , ConfigRemote ? remote )
384
384
{
385
- new ActionTask ( CancellationToken . None , ( ) => {
385
+ new ActionTask ( TaskManager . Instance . Token , ( ) => {
386
386
if ( ! Nullable . Equals ( CurrentConfigBranch , branch ) )
387
387
{
388
388
var currentBranch = branch != null ? ( GitBranch ? ) GetLocalGitBranch ( branch . Value ) : null ;
@@ -403,7 +403,7 @@ private void RepositoryManagerOnCurrentBranchUpdated(ConfigBranch? branch, Confi
403
403
404
404
private void RepositoryManagerOnGitStatusUpdated ( GitStatus gitStatus )
405
405
{
406
- new ActionTask ( CancellationToken . None , ( ) => {
406
+ new ActionTask ( TaskManager . Instance . Token , ( ) => {
407
407
CurrentChanges = gitStatus . Entries ;
408
408
CurrentAhead = gitStatus . Ahead ;
409
409
CurrentBehind = gitStatus . Behind ;
@@ -412,22 +412,22 @@ private void RepositoryManagerOnGitStatusUpdated(GitStatus gitStatus)
412
412
413
413
private void RepositoryManagerOnGitAheadBehindStatusUpdated ( GitAheadBehindStatus aheadBehindStatus )
414
414
{
415
- new ActionTask ( CancellationToken . None , ( ) => {
415
+ new ActionTask ( TaskManager . Instance . Token , ( ) => {
416
416
CurrentAhead = aheadBehindStatus . Ahead ;
417
417
CurrentBehind = aheadBehindStatus . Behind ;
418
418
} ) { Affinity = TaskAffinity . UI } . Start ( ) ;
419
419
}
420
420
421
421
private void RepositoryManagerOnGitLogUpdated ( List < GitLogEntry > gitLogEntries )
422
422
{
423
- new ActionTask ( CancellationToken . None , ( ) => {
423
+ new ActionTask ( TaskManager . Instance . Token , ( ) => {
424
424
CurrentLog = gitLogEntries ;
425
425
} ) { Affinity = TaskAffinity . UI } . Start ( ) ;
426
426
}
427
427
428
428
private void RepositoryManagerOnGitLocksUpdated ( List < GitLock > gitLocks )
429
429
{
430
- new ActionTask ( CancellationToken . None , ( ) => {
430
+ new ActionTask ( TaskManager . Instance . Token , ( ) => {
431
431
CurrentLocks = gitLocks ;
432
432
} )
433
433
{ Affinity = TaskAffinity . UI } . Start ( ) ;
@@ -436,7 +436,7 @@ private void RepositoryManagerOnGitLocksUpdated(List<GitLock> gitLocks)
436
436
private void RepositoryManagerOnRemoteBranchesUpdated ( Dictionary < string , ConfigRemote > remotes ,
437
437
Dictionary < string , Dictionary < string , ConfigBranch > > branches )
438
438
{
439
- new ActionTask ( CancellationToken . None , ( ) => {
439
+ new ActionTask ( TaskManager . Instance . Token , ( ) => {
440
440
cacheContainer . BranchCache . SetRemotes ( remotes , branches ) ;
441
441
Remotes = ConfigRemotes . Values . Select ( GetGitRemote ) . ToArray ( ) ;
442
442
RemoteBranches = RemoteConfigBranches . Values . SelectMany ( x => x . Values ) . Select ( GetRemoteGitBranch ) . ToArray ( ) ;
@@ -445,7 +445,7 @@ private void RepositoryManagerOnRemoteBranchesUpdated(Dictionary<string, ConfigR
445
445
446
446
private void RepositoryManagerOnLocalBranchesUpdated ( Dictionary < string , ConfigBranch > branches )
447
447
{
448
- new ActionTask ( CancellationToken . None , ( ) => {
448
+ new ActionTask ( TaskManager . Instance . Token , ( ) => {
449
449
cacheContainer . BranchCache . SetLocals ( branches ) ;
450
450
UpdateLocalBranches ( ) ;
451
451
} ) { Affinity = TaskAffinity . UI } . Start ( ) ;
0 commit comments