@@ -124,19 +124,16 @@ private void SetCloneUrl()
124124 private void RepositoryManager_OnStatusUpdated ( GitStatus status )
125125 {
126126 CurrentStatus = status ;
127- OnStatusUpdated ? . Invoke ( CurrentStatus ) ;
128127 }
129128
130129 private void RepositoryManager_OnActiveRemoteChanged ( ConfigRemote ? remote )
131130 {
132131 CurrentRemote = remote ;
133- OnActiveRemoteChanged ? . Invoke ( CurrentRemote . HasValue ? CurrentRemote . Value . Name : null ) ;
134132 }
135133
136134 private void RepositoryManager_OnActiveBranchChanged ( ConfigBranch ? branch )
137135 {
138136 CurrentBranch = branch ;
139- OnActiveBranchChanged ? . Invoke ( CurrentBranch . HasValue ? CurrentBranch . Value . Name : null ) ;
140137 }
141138
142139 private void RepositoryManager_OnHeadChanged ( )
@@ -195,6 +192,7 @@ public ConfigBranch? CurrentBranch
195192 {
196193 currentBranch = value ;
197194 Logger . Trace ( "OnActiveBranchChanged: {0}" , value ? . ToString ( ) ?? "NULL" ) ;
195+ OnActiveBranchChanged ? . Invoke ( CurrentBranch . HasValue ? CurrentBranch . Value . Name : null ) ;
198196 }
199197 }
200198 }
@@ -215,8 +213,9 @@ public ConfigRemote? CurrentRemote
215213 if ( currentRemote . HasValue != value . HasValue || ( currentRemote . HasValue && ! currentRemote . Value . Equals ( value . Value ) ) )
216214 {
217215 currentRemote = value ;
218- Logger . Trace ( "OnActiveRemoteChanged: {0}" , value ? . ToString ( ) ?? "NULL" ) ;
219216 SetCloneUrl ( ) ;
217+ Logger . Trace ( "OnActiveRemoteChanged: {0}" , value ? . ToString ( ) ?? "NULL" ) ;
218+ OnActiveRemoteChanged ? . Invoke ( CurrentRemote . HasValue ? CurrentRemote . Value . Name : null ) ;
220219 }
221220 }
222221 }
@@ -248,6 +247,7 @@ public GitStatus CurrentStatus
248247 {
249248 Logger . Trace ( "OnStatusUpdated: {0}" , value . ToString ( ) ) ;
250249 currentStatus = value ;
250+ OnStatusUpdated ? . Invoke ( CurrentStatus ) ;
251251 }
252252 }
253253
0 commit comments