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:
Jeremy Wu
2019-10-05 18:21:09 +10:00
parent 2d6d664f77
commit 4c0c9eb7fb

View File

@@ -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