@@ -107,12 +107,14 @@ public string CurrentBranch
107
107
108
108
try
109
109
{
110
+ OnLoadingComponentsStarted ( ) ;
110
111
Provider . Checkout ( _currentBranch ) ;
111
112
}
112
113
catch ( SourceControlException ex )
113
114
{
114
115
RaiseErrorEvent ( ex . Message , ex . InnerException . Message , NotificationType . Error ) ;
115
116
}
117
+ OnLoadingComponentsCompleted ( ) ;
116
118
}
117
119
}
118
120
}
@@ -279,7 +281,7 @@ private void CreateBranchCancel()
279
281
280
282
private void MergeBranchOk ( )
281
283
{
282
- OnMergeStarted ( ) ;
284
+ OnLoadingComponentsStarted ( ) ;
283
285
284
286
try
285
287
{
@@ -288,13 +290,13 @@ private void MergeBranchOk()
288
290
catch ( SourceControlException ex )
289
291
{
290
292
RaiseErrorEvent ( ex . Message , ex . InnerException . Message , NotificationType . Error ) ;
291
- OnMergeCompleted ( ) ;
293
+ OnLoadingComponentsCompleted ( ) ;
292
294
return ;
293
295
}
294
296
295
297
DisplayMergeBranchesGrid = false ;
296
298
RaiseErrorEvent ( RubberduckUI . SourceControl_MergeStatus , string . Format ( RubberduckUI . SourceControl_SuccessfulMerge , SourceBranch , DestinationBranch ) , NotificationType . Info ) ;
297
- OnMergeCompleted ( ) ;
299
+ OnLoadingComponentsCompleted ( ) ;
298
300
}
299
301
300
302
private void MergeBranchCancel ( )
@@ -429,20 +431,20 @@ private void RaiseErrorEvent(string message, string innerMessage, NotificationTy
429
431
}
430
432
}
431
433
432
- public event EventHandler < EventArgs > MergeStarted ;
433
- private void OnMergeStarted ( )
434
+ public event EventHandler < EventArgs > LoadingComponentsStarted ;
435
+ private void OnLoadingComponentsStarted ( )
434
436
{
435
- var handler = MergeStarted ;
437
+ var handler = LoadingComponentsStarted ;
436
438
if ( handler != null )
437
439
{
438
440
handler ( this , EventArgs . Empty ) ;
439
441
}
440
442
}
441
443
442
- public event EventHandler < EventArgs > MergeCompleted ;
443
- private void OnMergeCompleted ( )
444
+ public event EventHandler < EventArgs > LoadingComponentsCompleted ;
445
+ private void OnLoadingComponentsCompleted ( )
444
446
{
445
- var handler = MergeCompleted ;
447
+ var handler = LoadingComponentsCompleted ;
446
448
if ( handler != null )
447
449
{
448
450
handler ( this , EventArgs . Empty ) ;
0 commit comments