When user querying thirdparty plugins, system plugins shouldn't be included

This commit is contained in:
qianlifeng
2014-06-04 16:47:14 +08:00
parent e1c7705182
commit f8d810a787

View File

@@ -4,6 +4,7 @@ using System.Linq;
using System.Text;
using Wox.Helper;
using Wox.Plugin;
using Wox.PluginLoader;
namespace Wox.Commands
{
@@ -24,8 +25,14 @@ namespace Wox.Commands
systemCmd = new SystemCommand();
}
systemCmd.Dispatch(query);
pluginCmd.Dispatch(query);
if (Plugins.HitThirdpartyKeyword(query))
{
pluginCmd.Dispatch(query);
}
else
{
systemCmd.Dispatch(query);
}
}
}
}