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 @@ -1334,10 +1334,7 @@ private static List<Result> GetHistoryItems(IEnumerable<HistoryItem> historyItem
13341334
13351335 private async Task QueryResultsAsync ( bool searchDelay , bool isReQuery = false , bool reSelect = true )
13361336 {
1337- if ( _updateSource != null )
1338- {
1339- await _updateSource . CancelAsync ( ) ;
1340- }
1337+ _updateSource ? . Cancel ( ) ;
13411338 _progressQuery = null ;
13421339
13431340 App . API . LogDebug ( ClassName , $ "Start query with text: <{ QueryText } >") ;
@@ -1931,10 +1928,7 @@ public async Task SetupDialogJumpAsync(nint handle)
19311928 if ( DialogJump . DialogJumpWindowPosition == DialogJumpWindowPositions . UnderDialog )
19321929 {
19331930 // Cancel the previous Dialog Jump task
1934- if ( _dialogJumpSource != null )
1935- {
1936- await _dialogJumpSource . CancelAsync ( ) ;
1937- }
1931+ _dialogJumpSource ? . Cancel ( ) ;
19381932
19391933 // Create a new cancellation token source
19401934 _dialogJumpSource = new CancellationTokenSource ( ) ;
You can’t perform that action at this time.
0 commit comments