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 +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public void Initialize(IRepositoryManager initRepositoryManager)
50
50
repositoryManager . CurrentBranchUpdated += RepositoryManagerOnCurrentBranchUpdated ;
51
51
repositoryManager . GitStatusUpdated += RepositoryManagerOnGitStatusUpdated ;
52
52
repositoryManager . GitLogUpdated += RepositoryManagerOnGitLogUpdated ;
53
+ repositoryManager . GitLocksUpdated += RepositoryManagerOnGitLocksUpdated ;
53
54
repositoryManager . LocalBranchesUpdated += RepositoryManagerOnLocalBranchesUpdated ;
54
55
repositoryManager . RemoteBranchesUpdated += RepositoryManagerOnRemoteBranchesUpdated ;
55
56
}
@@ -383,6 +384,14 @@ private void RepositoryManagerOnGitLogUpdated(List<GitLogEntry> gitLogEntries)
383
384
} ) { Affinity = TaskAffinity . UI } . Start ( ) ;
384
385
}
385
386
387
+ private void RepositoryManagerOnGitLocksUpdated ( List < GitLock > gitLocks )
388
+ {
389
+ new ActionTask ( CancellationToken . None , ( ) => {
390
+ CurrentLocks = gitLocks ;
391
+ } )
392
+ { Affinity = TaskAffinity . UI } . Start ( ) ;
393
+ }
394
+
386
395
private void RepositoryManagerOnRemoteBranchesUpdated ( Dictionary < string , ConfigRemote > remotes ,
387
396
Dictionary < string , Dictionary < string , ConfigBranch > > branches )
388
397
{
You can’t perform that action at this time.
0 commit comments