File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1333,7 +1333,10 @@ private static List<Result> GetHistoryItems(IEnumerable<HistoryItem> historyItem
1333
1333
1334
1334
private async Task QueryResultsAsync ( bool searchDelay , bool isReQuery = false , bool reSelect = true )
1335
1335
{
1336
- await _updateSource ? . CancelAsync ( ) ;
1336
+ if ( _updateSource != null )
1337
+ {
1338
+ await _updateSource . CancelAsync ( ) ;
1339
+ }
1337
1340
_progressQuery = null ;
1338
1341
1339
1342
App . API . LogDebug ( ClassName , $ "Start query with text: <{ QueryText } >") ;
@@ -1927,7 +1930,10 @@ public async Task SetupDialogJumpAsync(nint handle)
1927
1930
if ( DialogJump . DialogJumpWindowPosition == DialogJumpWindowPositions . UnderDialog )
1928
1931
{
1929
1932
// Cancel the previous Dialog Jump task
1930
- await _dialogJumpSource ? . CancelAsync ( ) ;
1933
+ if ( _dialogJumpSource != null )
1934
+ {
1935
+ await _dialogJumpSource . CancelAsync ( ) ;
1936
+ }
1931
1937
1932
1938
// Create a new cancellation token source
1933
1939
_dialogJumpSource = new CancellationTokenSource ( ) ;
You can’t perform that action at this time.
0 commit comments