mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Fix missing query part when using global wildcard sign
when using global wildcard sign that is the same as action keyword
This commit is contained in:
@@ -49,10 +49,11 @@ namespace Wox.Plugin.WebSearch
|
||||
{
|
||||
foreach (SearchSource searchSource in searchSourceList)
|
||||
{
|
||||
string keyword = query.Search;
|
||||
string title = keyword;
|
||||
string subtitle = _context.API.GetTranslation("wox_plugin_websearch_search") + " " +
|
||||
searchSource.Title;
|
||||
string keyword = string.Empty;
|
||||
keyword = searchSource.ActionKeyword == SearchSourceGlobalPluginWildCardSign ? query.ToString() : query.Search;
|
||||
var title = keyword;
|
||||
string subtitle = _context.API.GetTranslation("wox_plugin_websearch_search") + " " + searchSource.Title;
|
||||
|
||||
if (string.IsNullOrEmpty(keyword))
|
||||
{
|
||||
var result = new Result
|
||||
|
||||
Reference in New Issue
Block a user