@@ -1310,8 +1310,6 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
13101310
13111311 var query = await ConstructQueryAsync ( QueryText , Settings . CustomShortcuts , Settings . BuiltinShortcuts ) ;
13121312
1313- var quickSwitch = _isQuickSwitch ; // save quick switch state
1314-
13151313 if ( query == null ) // shortcut expanded
13161314 {
13171315 ClearResults ( ) ;
@@ -1321,9 +1319,10 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
13211319 App . API . LogDebug ( ClassName , $ "Start query with ActionKeyword <{ query . ActionKeyword } > and RawQuery <{ query . RawQuery } >") ;
13221320
13231321 var currentIsHomeQuery = query . RawQuery == string . Empty ;
1322+ var currentIsQuickSwitch = _isQuickSwitch ;
13241323
13251324 // Do not show home page for quick switch window
1326- if ( quickSwitch && currentIsHomeQuery )
1325+ if ( currentIsQuickSwitch && currentIsHomeQuery )
13271326 {
13281327 ClearResults ( ) ;
13291328 return ;
@@ -1361,7 +1360,7 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
13611360 }
13621361 else
13631362 {
1364- plugins = PluginManager . ValidPluginsForQuery ( query , quickSwitch ) ;
1363+ plugins = PluginManager . ValidPluginsForQuery ( query , currentIsQuickSwitch ) ;
13651364
13661365 if ( plugins . Count == 1 )
13671366 {
@@ -1467,7 +1466,7 @@ async Task QueryTaskAsync(PluginPair plugin, CancellationToken token)
14671466 // Task.Yield will force it to run in ThreadPool
14681467 await Task . Yield ( ) ;
14691468
1470- if ( quickSwitch )
1469+ if ( currentIsQuickSwitch )
14711470 {
14721471 var results = await PluginManager . QueryQuickSwitchForPluginAsync ( plugin , query , token ) ;
14731472
0 commit comments