mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
When user querying thirdparty plugins, system plugins shouldn't be included
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Wox.Helper;
|
using Wox.Helper;
|
||||||
using Wox.Plugin;
|
using Wox.Plugin;
|
||||||
|
using Wox.PluginLoader;
|
||||||
|
|
||||||
namespace Wox.Commands
|
namespace Wox.Commands
|
||||||
{
|
{
|
||||||
@@ -24,8 +25,14 @@ namespace Wox.Commands
|
|||||||
systemCmd = new SystemCommand();
|
systemCmd = new SystemCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
systemCmd.Dispatch(query);
|
if (Plugins.HitThirdpartyKeyword(query))
|
||||||
pluginCmd.Dispatch(query);
|
{
|
||||||
|
pluginCmd.Dispatch(query);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
systemCmd.Dispatch(query);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user