@@ -516,7 +516,7 @@ private void OnTreeKeyDown(object _, KeyEventArgs e)
516516 e . Handled = true ;
517517 }
518518
519- private void OnDoubleTappedBranchNode ( object sender , TappedEventArgs _ )
519+ private async void OnDoubleTappedBranchNode ( object sender , TappedEventArgs _ )
520520 {
521521 if ( sender is Grid { DataContext : ViewModels . BranchTreeNode node } )
522522 {
@@ -526,7 +526,7 @@ private void OnDoubleTappedBranchNode(object sender, TappedEventArgs _)
526526 return ;
527527
528528 if ( DataContext is ViewModels . Repository { Settings : not null } repo )
529- repo . CheckoutBranch ( branch ) ;
529+ await repo . CheckoutBranchAsync ( branch ) ;
530530 }
531531 else
532532 {
@@ -606,10 +606,10 @@ private ContextMenu CreateContextMenuForLocalBranch(ViewModels.Repository repo,
606606 fastForward . Header = App . Text ( "BranchCM.FastForward" , upstream . FriendlyName ) ;
607607 fastForward . Icon = App . CreateMenuIcon ( "Icons.FastForward" ) ;
608608 fastForward . IsEnabled = branch . TrackStatus . Ahead . Count == 0 && branch . TrackStatus . Behind . Count > 0 ;
609- fastForward . Click += ( _ , e ) =>
609+ fastForward . Click += async ( _ , e ) =>
610610 {
611611 if ( repo . CanCreatePopup ( ) )
612- repo . ShowAndStartPopup ( new ViewModels . Merge ( repo , upstream , branch . Name , true ) ) ;
612+ await repo . ShowAndStartPopupAsync ( new ViewModels . Merge ( repo , upstream , branch . Name , true ) ) ;
613613 e . Handled = true ;
614614 } ;
615615
@@ -638,9 +638,9 @@ private ContextMenu CreateContextMenuForLocalBranch(ViewModels.Repository repo,
638638 var checkout = new MenuItem ( ) ;
639639 checkout . Header = App . Text ( "BranchCM.Checkout" , branch . Name ) ;
640640 checkout . Icon = App . CreateMenuIcon ( "Icons.Check" ) ;
641- checkout . Click += ( _ , e ) =>
641+ checkout . Click += async ( _ , e ) =>
642642 {
643- repo . CheckoutBranch ( branch ) ;
643+ await repo . CheckoutBranchAsync ( branch ) ;
644644 e . Handled = true ;
645645 } ;
646646 menu . Items . Add ( checkout ) ;
@@ -654,10 +654,10 @@ private ContextMenu CreateContextMenuForLocalBranch(ViewModels.Repository repo,
654654 fastForward . Header = App . Text ( "BranchCM.FastForward" , upstream . FriendlyName ) ;
655655 fastForward . Icon = App . CreateMenuIcon ( "Icons.FastForward" ) ;
656656 fastForward . IsEnabled = branch . TrackStatus . Ahead . Count == 0 && branch . TrackStatus . Behind . Count > 0 ;
657- fastForward . Click += ( _ , e ) =>
657+ fastForward . Click += async ( _ , e ) =>
658658 {
659659 if ( repo . CanCreatePopup ( ) )
660- repo . ShowAndStartPopup ( new ViewModels . ResetWithoutCheckout ( repo , branch , upstream ) ) ;
660+ await repo . ShowAndStartPopupAsync ( new ViewModels . ResetWithoutCheckout ( repo , branch , upstream ) ) ;
661661 e . Handled = true ;
662662 } ;
663663 menu . Items . Add ( fastForward ) ;
@@ -666,10 +666,10 @@ private ContextMenu CreateContextMenuForLocalBranch(ViewModels.Repository repo,
666666 fetchInto . Header = App . Text ( "BranchCM.FetchInto" , upstream . FriendlyName , branch . Name ) ;
667667 fetchInto . Icon = App . CreateMenuIcon ( "Icons.Fetch" ) ;
668668 fetchInto . IsEnabled = branch . TrackStatus . Ahead . Count == 0 ;
669- fetchInto . Click += ( _ , e ) =>
669+ fetchInto . Click += async ( _ , e ) =>
670670 {
671671 if ( repo . CanCreatePopup ( ) )
672- repo . ShowAndStartPopup ( new ViewModels . FetchInto ( repo , branch , upstream ) ) ;
672+ await repo . ShowAndStartPopupAsync ( new ViewModels . FetchInto ( repo , branch , upstream ) ) ;
673673 e . Handled = true ;
674674 } ;
675675
@@ -898,10 +898,10 @@ private ContextMenu CreateContextMenuForRemote(ViewModels.Repository repo, Model
898898 var prune = new MenuItem ( ) ;
899899 prune . Header = App . Text ( "RemoteCM.Prune" ) ;
900900 prune . Icon = App . CreateMenuIcon ( "Icons.Clean" ) ;
901- prune . Click += ( _ , e ) =>
901+ prune . Click += async ( _ , e ) =>
902902 {
903903 if ( repo . CanCreatePopup ( ) )
904- repo . ShowAndStartPopup ( new ViewModels . PruneRemote ( repo , remote ) ) ;
904+ await repo . ShowAndStartPopupAsync ( new ViewModels . PruneRemote ( repo , remote ) ) ;
905905 e . Handled = true ;
906906 } ;
907907
@@ -952,9 +952,9 @@ public ContextMenu CreateContextMenuForRemoteBranch(ViewModels.Repository repo,
952952 var checkout = new MenuItem ( ) ;
953953 checkout . Header = App . Text ( "BranchCM.Checkout" , name ) ;
954954 checkout . Icon = App . CreateMenuIcon ( "Icons.Check" ) ;
955- checkout . Click += ( _ , e ) =>
955+ checkout . Click += async ( _ , e ) =>
956956 {
957- repo . CheckoutBranch ( branch ) ;
957+ await repo . CheckoutBranchAsync ( branch ) ;
958958 e . Handled = true ;
959959 } ;
960960 menu . Items . Add ( checkout ) ;
@@ -1099,9 +1099,9 @@ private void TryToAddCustomActionsToBranchContextMenu(ViewModels.Repository repo
10991099 var item = new MenuItem ( ) ;
11001100 item . Icon = App . CreateMenuIcon ( "Icons.Action" ) ;
11011101 item . Header = label ;
1102- item . Click += ( _ , e ) =>
1102+ item . Click += async ( _ , e ) =>
11031103 {
1104- repo . ExecCustomAction ( dup , branch ) ;
1104+ await repo . ExecCustomActionAsync ( dup , branch ) ;
11051105 e . Handled = true ;
11061106 } ;
11071107
0 commit comments