mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Add IExclusivePlugin
This commit is contained in:
18
Wox.Core/Plugin/QueryDispatcher/GenericQueryDispatcher.cs
Normal file
18
Wox.Core/Plugin/QueryDispatcher/GenericQueryDispatcher.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using Wox.Core.Exception;
|
||||
using Wox.Core.UserSettings;
|
||||
using Wox.Infrastructure.Logger;
|
||||
using Wox.Plugin;
|
||||
|
||||
namespace Wox.Core.Plugin.QueryDispatcher
|
||||
{
|
||||
public class GenericQueryDispatcher : BaseQueryDispatcher
|
||||
{
|
||||
protected override List<PluginPair> GetPlugins(Query query)
|
||||
{
|
||||
return PluginManager.AllPlugins.Where(o => PluginManager.IsGenericPlugin(o.Metadata)).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user