[PTRun]Don't show results from other plugins when using keyword (#19206)

This commit is contained in:
Davide Giacometti
2022-07-15 11:38:11 +02:00
committed by GitHub
parent 8e2570033c
commit 996a235e12
9 changed files with 53 additions and 35 deletions

View File

@@ -60,8 +60,8 @@ namespace Community.PowerToys.Run.Plugin.WebSearch
var results = new List<Result>();
// empty non-global query:
if (!AreResultsGlobal() && query.ActionKeyword == query.RawQuery)
// empty query
if (string.IsNullOrEmpty(query.Search))
{
string arguments = "? ";
results.Add(new Result
@@ -84,8 +84,7 @@ namespace Community.PowerToys.Run.Plugin.WebSearch
});
return results;
}
if (!string.IsNullOrEmpty(query.Search))
else
{
string searchTerm = query.Search;