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)
5050 repositoryManager . CurrentBranchUpdated += RepositoryManagerOnCurrentBranchUpdated ;
5151 repositoryManager . GitStatusUpdated += RepositoryManagerOnGitStatusUpdated ;
5252 repositoryManager . GitLogUpdated += RepositoryManagerOnGitLogUpdated ;
53+ repositoryManager . GitLocksUpdated += RepositoryManagerOnGitLocksUpdated ;
5354 repositoryManager . LocalBranchesUpdated += RepositoryManagerOnLocalBranchesUpdated ;
5455 repositoryManager . RemoteBranchesUpdated += RepositoryManagerOnRemoteBranchesUpdated ;
5556 }
@@ -383,6 +384,14 @@ private void RepositoryManagerOnGitLogUpdated(List<GitLogEntry> gitLogEntries)
383384 } ) { Affinity = TaskAffinity . UI } . Start ( ) ;
384385 }
385386
387+ private void RepositoryManagerOnGitLocksUpdated ( List < GitLock > gitLocks )
388+ {
389+ new ActionTask ( CancellationToken . None , ( ) => {
390+ CurrentLocks = gitLocks ;
391+ } )
392+ { Affinity = TaskAffinity . UI } . Start ( ) ;
393+ }
394+
386395 private void RepositoryManagerOnRemoteBranchesUpdated ( Dictionary < string , ConfigRemote > remotes ,
387396 Dictionary < string , Dictionary < string , ConfigBranch > > branches )
388397 {
You can’t perform that action at this time.
0 commit comments