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
1334
1334
1335
1335
private async Task QueryResultsAsync ( bool searchDelay , bool isReQuery = false , bool reSelect = true )
1336
1336
{
1337
- if ( _updateSource != null )
1338
- {
1339
- await _updateSource . CancelAsync ( ) ;
1340
- }
1337
+ _updateSource ? . Cancel ( ) ;
1341
1338
_progressQuery = null ;
1342
1339
1343
1340
App . API . LogDebug ( ClassName , $ "Start query with text: <{ QueryText } >") ;
@@ -1931,10 +1928,7 @@ public async Task SetupDialogJumpAsync(nint handle)
1931
1928
if ( DialogJump . DialogJumpWindowPosition == DialogJumpWindowPositions . UnderDialog )
1932
1929
{
1933
1930
// Cancel the previous Dialog Jump task
1934
- if ( _dialogJumpSource != null )
1935
- {
1936
- await _dialogJumpSource . CancelAsync ( ) ;
1937
- }
1931
+ _dialogJumpSource ? . Cancel ( ) ;
1938
1932
1939
1933
// Create a new cancellation token source
1940
1934
_dialogJumpSource = new CancellationTokenSource ( ) ;
You can’t perform that action at this time.
0 commit comments