From f8d810a78757f31abb17a413c6d3a446136bd4c5 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Wed, 4 Jun 2014 16:47:14 +0800 Subject: [PATCH] When user querying thirdparty plugins, system plugins shouldn't be included --- Wox/Commands/CommandFactory.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Wox/Commands/CommandFactory.cs b/Wox/Commands/CommandFactory.cs index 1df62d5c01..b248afa716 100644 --- a/Wox/Commands/CommandFactory.cs +++ b/Wox/Commands/CommandFactory.cs @@ -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); + } } } }