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

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