File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1331,10 +1331,7 @@ private static List<Result> GetHistoryItems(IEnumerable<HistoryItem> historyItem
1331
1331
1332
1332
private async Task QueryResultsAsync ( bool searchDelay , bool isReQuery = false , bool reSelect = true )
1333
1333
{
1334
- if ( _updateSource != null )
1335
- {
1336
- await _updateSource . CancelAsync ( ) ;
1337
- }
1334
+ _updateSource ? . Cancel ( ) ;
1338
1335
1339
1336
App . API . LogDebug ( ClassName , $ "Start query with text: <{ QueryText } >") ;
1340
1337
@@ -1913,10 +1910,7 @@ public async Task SetupDialogJumpAsync(nint handle)
1913
1910
if ( DialogJump . DialogJumpWindowPosition == DialogJumpWindowPositions . UnderDialog )
1914
1911
{
1915
1912
// Cancel the previous Dialog Jump task
1916
- if ( _dialogJumpSource != null )
1917
- {
1918
- await _dialogJumpSource . CancelAsync ( ) ;
1919
- }
1913
+ _dialogJumpSource ? . Cancel ( ) ;
1920
1914
1921
1915
// Create a new cancellation token source
1922
1916
_dialogJumpSource = new CancellationTokenSource ( ) ;
You can’t perform that action at this time.
0 commit comments