@@ -124,19 +124,16 @@ private void SetCloneUrl()
124
124
private void RepositoryManager_OnStatusUpdated ( GitStatus status )
125
125
{
126
126
CurrentStatus = status ;
127
- OnStatusUpdated ? . Invoke ( CurrentStatus ) ;
128
127
}
129
128
130
129
private void RepositoryManager_OnActiveRemoteChanged ( ConfigRemote ? remote )
131
130
{
132
131
CurrentRemote = remote ;
133
- OnActiveRemoteChanged ? . Invoke ( CurrentRemote . HasValue ? CurrentRemote . Value . Name : null ) ;
134
132
}
135
133
136
134
private void RepositoryManager_OnActiveBranchChanged ( ConfigBranch ? branch )
137
135
{
138
136
CurrentBranch = branch ;
139
- OnActiveBranchChanged ? . Invoke ( CurrentBranch . HasValue ? CurrentBranch . Value . Name : null ) ;
140
137
}
141
138
142
139
private void RepositoryManager_OnHeadChanged ( )
@@ -195,6 +192,7 @@ public ConfigBranch? CurrentBranch
195
192
{
196
193
currentBranch = value ;
197
194
Logger . Trace ( "OnActiveBranchChanged: {0}" , value ? . ToString ( ) ?? "NULL" ) ;
195
+ OnActiveBranchChanged ? . Invoke ( CurrentBranch . HasValue ? CurrentBranch . Value . Name : null ) ;
198
196
}
199
197
}
200
198
}
@@ -215,8 +213,9 @@ public ConfigRemote? CurrentRemote
215
213
if ( currentRemote . HasValue != value . HasValue || ( currentRemote . HasValue && ! currentRemote . Value . Equals ( value . Value ) ) )
216
214
{
217
215
currentRemote = value ;
218
- Logger . Trace ( "OnActiveRemoteChanged: {0}" , value ? . ToString ( ) ?? "NULL" ) ;
219
216
SetCloneUrl ( ) ;
217
+ Logger . Trace ( "OnActiveRemoteChanged: {0}" , value ? . ToString ( ) ?? "NULL" ) ;
218
+ OnActiveRemoteChanged ? . Invoke ( CurrentRemote . HasValue ? CurrentRemote . Value . Name : null ) ;
220
219
}
221
220
}
222
221
}
@@ -248,6 +247,7 @@ public GitStatus CurrentStatus
248
247
{
249
248
Logger . Trace ( "OnStatusUpdated: {0}" , value . ToString ( ) ) ;
250
249
currentStatus = value ;
250
+ OnStatusUpdated ? . Invoke ( CurrentStatus ) ;
251
251
}
252
252
}
253
253
0 commit comments