@@ -537,7 +537,7 @@ private void OnTreeContextRequested(object _1, ContextRequestedEventArgs _2)
537537 compare . Icon = this . CreateMenuIcon ( "Icons.Compare" ) ;
538538 compare . Click += ( _ , ev ) =>
539539 {
540- App . ShowWindow ( new ViewModels . Compare ( repo , branches [ 0 ] , branches [ 1 ] ) ) ;
540+ this . ShowWindow ( new ViewModels . Compare ( repo , branches [ 0 ] , branches [ 1 ] ) ) ;
541541 ev . Handled = true ;
542542 } ;
543543 menu . Items . Add ( compare ) ;
@@ -819,7 +819,7 @@ private ContextMenu CreateContextMenuForLocalBranch(ViewModels.Repository repo,
819819 interactiveRebase . Click += async ( _ , e ) =>
820820 {
821821 var commit = await new Commands . QuerySingleCommit ( repo . FullPath , branch . Head ) . GetResultAsync ( ) ;
822- await App . ShowDialog ( new ViewModels . InteractiveRebase ( repo , commit ) ) ;
822+ await this . ShowDialogAsync ( new ViewModels . InteractiveRebase ( repo , commit ) ) ;
823823 e . Handled = true ;
824824 } ;
825825
@@ -853,7 +853,7 @@ private ContextMenu CreateContextMenuForLocalBranch(ViewModels.Repository repo,
853853 compareWithCurrent . Icon = this . CreateMenuIcon ( "Icons.Compare" ) ;
854854 compareWithCurrent . Click += ( _ , _ ) =>
855855 {
856- App . ShowWindow ( new ViewModels . Compare ( repo , branch , current ) ) ;
856+ this . ShowWindow ( new ViewModels . Compare ( repo , branch , current ) ) ;
857857 } ;
858858
859859 var compareWith = new MenuItem ( ) ;
@@ -1154,7 +1154,7 @@ public ContextMenu CreateContextMenuForRemoteBranch(ViewModels.Repository repo,
11541154 interactiveRebase . Click += async ( _ , e ) =>
11551155 {
11561156 var commit = await new Commands . QuerySingleCommit ( repo . FullPath , branch . Head ) . GetResultAsync ( ) ;
1157- await App . ShowDialog ( new ViewModels . InteractiveRebase ( repo , commit ) ) ;
1157+ await this . ShowDialogAsync ( new ViewModels . InteractiveRebase ( repo , commit ) ) ;
11581158 e . Handled = true ;
11591159 } ;
11601160
@@ -1163,7 +1163,7 @@ public ContextMenu CreateContextMenuForRemoteBranch(ViewModels.Repository repo,
11631163 compareWithHead . Icon = this . CreateMenuIcon ( "Icons.Compare" ) ;
11641164 compareWithHead . Click += ( _ , _ ) =>
11651165 {
1166- App . ShowWindow ( new ViewModels . Compare ( repo , branch , current ) ) ;
1166+ this . ShowWindow ( new ViewModels . Compare ( repo , branch , current ) ) ;
11671167 } ;
11681168
11691169 var compareWith = new MenuItem ( ) ;
0 commit comments