fix a plugin query issue

This commit is contained in:
qianlifeng
2015-02-08 00:06:22 +08:00
parent bc7dce6026
commit 877ad53ead
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"ID":"D2D2C23B084D411DB66FE0C79D6C2A6E",
"ActionKeyword":"*",
"ActionKeyword":"f",
"Name":"Everything",
"Description":"Search Everything",
"Author":"qianlifeng,orzfly",

View File

@@ -248,6 +248,9 @@ namespace Wox.Core.Plugin
internal static PluginPair GetActionKeywordPlugin(Query query)
{
//if a query doesn't contain at least one space, it should not be a action keword plugin query
if (!query.RawQuery.Contains(" ")) return null;
PluginPair actionKeywordPluginPair = AllPlugins.FirstOrDefault(o => o.Metadata.ActionKeyword == query.GetActionKeyword());
if (actionKeywordPluginPair != null)
{