mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Add pluginID for result.
This commit is contained in:
@@ -3,18 +3,18 @@ namespace Wox.Core.Plugin.QueryDispatcher
|
||||
{
|
||||
internal static class QueryDispatcher
|
||||
{
|
||||
private static IQueryDispatcher pluginCmd = new RegularPluginQueryDispatcher();
|
||||
private static IQueryDispatcher systemCmd = new WildcardPluginQueryDispatcher();
|
||||
private static IQueryDispatcher regularDispatcher = new RegularPluginQueryDispatcher();
|
||||
private static IQueryDispatcher wildcardDispatcher = new WildcardPluginQueryDispatcher();
|
||||
|
||||
public static void Dispatch(Wox.Plugin.Query query)
|
||||
{
|
||||
if (PluginManager.IsRegularPluginQuery(query))
|
||||
{
|
||||
pluginCmd.Dispatch(query);
|
||||
regularDispatcher.Dispatch(query);
|
||||
}
|
||||
else
|
||||
{
|
||||
systemCmd.Dispatch(query);
|
||||
wildcardDispatcher.Dispatch(query);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user