mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +08:00
25 lines
664 B
C#
25 lines
664 B
C#
using System.Collections.Generic;
|
|
using Wox.Plugin;
|
|
|
|
namespace Wox.Core.Plugin.QueryDispatcher
|
|
{
|
|
public class ExclusiveQueryDispatcher : BaseQueryDispatcher
|
|
{
|
|
protected override List<PluginPair> GetPlugins(Query query)
|
|
{
|
|
List<PluginPair> pluginPairs = new List<PluginPair>();
|
|
var exclusivePluginPair = PluginManager.GetExclusivePlugin(query) ??
|
|
PluginManager.GetActionKeywordPlugin(query);
|
|
if (exclusivePluginPair != null)
|
|
{
|
|
pluginPairs.Add(exclusivePluginPair);
|
|
}
|
|
|
|
return pluginPairs;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|