mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +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)
|
foreach (SearchSource searchSource in searchSourceList)
|
||||||
{
|
{
|
||||||
string keyword = query.Search;
|
string keyword = string.Empty;
|
||||||
string title = keyword;
|
keyword = searchSource.ActionKeyword == SearchSourceGlobalPluginWildCardSign ? query.ToString() : query.Search;
|
||||||
string subtitle = _context.API.GetTranslation("wox_plugin_websearch_search") + " " +
|
var title = keyword;
|
||||||
searchSource.Title;
|
string subtitle = _context.API.GetTranslation("wox_plugin_websearch_search") + " " + searchSource.Title;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(keyword))
|
if (string.IsNullOrEmpty(keyword))
|
||||||
{
|
{
|
||||||
var result = new Result
|
var result = new Result
|
||||||
|
|||||||
Reference in New Issue
Block a user