File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,7 +189,8 @@ public override async Task<bool> Sure()
189189
190190 public override void Terminate ( )
191191 {
192- _cancellation ? . Cancel ( ) ;
192+ // Just fire cancel event and UI will auto wait the `Sure` complete
193+ var _ = _cancellation ? . CancelAsync ( ) ;
193194 }
194195
195196 private void CollectGroups ( List < RepositoryNode > outs , List < RepositoryNode > collections )
Original file line number Diff line number Diff line change @@ -124,7 +124,8 @@ public override async Task<bool> Sure()
124124
125125 public override void Terminate ( )
126126 {
127- _cancellation ? . Cancel ( ) ;
127+ // Just fire cancel event and UI will auto wait the `Sure` complete
128+ var _ = _cancellation ? . CancelAsync ( ) ;
128129 }
129130
130131 private readonly Repository _repo = null ;
Original file line number Diff line number Diff line change @@ -183,7 +183,8 @@ public override async Task<bool> Sure()
183183
184184 public override void Terminate ( )
185185 {
186- _cancellation ? . Cancel ( ) ;
186+ // Just fire cancel event and UI will auto wait the `Sure` complete
187+ var _ = _cancellation ? . CancelAsync ( ) ;
187188 }
188189
189190 private void PostRemoteSelected ( )
Original file line number Diff line number Diff line change @@ -226,7 +226,8 @@ public override async Task<bool> Sure()
226226
227227 public override void Terminate ( )
228228 {
229- _cancellation ? . Cancel ( ) ;
229+ // Just fire cancel event and UI will auto wait the `Sure` complete
230+ var _ = _cancellation ? . CancelAsync ( ) ;
230231 }
231232
232233 private void AutoSelectBranchByRemote ( )
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ public override async Task<bool> Sure()
6161
6262 public override void Terminate ( )
6363 {
64- _cancellation ? . Cancel ( ) ;
64+ // Just fire cancel event and UI will auto wait the `Sure` complete
65+ var _ = _cancellation ? . CancelAsync ( ) ;
6566 }
6667
6768 private readonly Repository _repo ;
You can’t perform that action at this time.
0 commit comments