mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
21 lines
588 B
C#
21 lines
588 B
C#
|
|
namespace Wox.Core.Plugin.QueryDispatcher
|
|
{
|
|
internal static class QueryDispatcher
|
|
{
|
|
private static IQueryDispatcher pluginCmd = new UserPluginQueryDispatcher();
|
|
private static IQueryDispatcher systemCmd = new SystemPluginQueryDispatcher();
|
|
|
|
public static void Dispatch(Wox.Plugin.Query query)
|
|
{
|
|
if (PluginManager.IsUserPluginQuery(query))
|
|
{
|
|
pluginCmd.Dispatch(query);
|
|
}
|
|
else
|
|
{
|
|
systemCmd.Dispatch(query);
|
|
}
|
|
}
|
|
}
|
|
}
|