@@ -1267,6 +1267,8 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
12671267 return ;
12681268 }
12691269
1270+ var isHomeQuery = query . RawQuery == string . Empty ;
1271+
12701272 try
12711273 {
12721274 // Check if the query has changed because query can be changed so fast that
@@ -1275,8 +1277,6 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
12751277
12761278 App . API . LogDebug ( ClassName , $ "Start query with ActionKeyword <{ query . ActionKeyword } > and RawQuery <{ query . RawQuery } >") ;
12771279
1278- var isHomeQuery = query . RawQuery == string . Empty ;
1279-
12801280 _updateSource ? . Dispose ( ) ;
12811281
12821282 var currentUpdateSource = new CancellationTokenSource ( ) ;
@@ -1364,7 +1364,7 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
13641364 {
13651365 tasks = plugins . Select ( plugin => plugin . Metadata . HomeDisabled switch
13661366 {
1367- false => QueryTaskAsync ( plugin , true , currentCancellationToken ) ,
1367+ false => QueryTaskAsync ( plugin , currentCancellationToken ) ,
13681368 true => Task . CompletedTask
13691369 } ) . ToArray ( ) ;
13701370
@@ -1378,7 +1378,7 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
13781378 {
13791379 tasks = plugins . Select ( plugin => plugin . Metadata . Disabled switch
13801380 {
1381- false => QueryTaskAsync ( plugin , false , currentCancellationToken ) ,
1381+ false => QueryTaskAsync ( plugin , currentCancellationToken ) ,
13821382 true => Task . CompletedTask
13831383 } ) . ToArray ( ) ;
13841384 }
@@ -1412,7 +1412,7 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
14121412 }
14131413
14141414 // Local function
1415- async Task QueryTaskAsync ( PluginPair plugin , bool isHomeQuery , CancellationToken token )
1415+ async Task QueryTaskAsync ( PluginPair plugin , CancellationToken token )
14161416 {
14171417 App . API . LogDebug ( ClassName , $ "Wait for querying plugin <{ plugin . Metadata . Name } >") ;
14181418
0 commit comments