mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Add IExclusivePlugin
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Wox.Plugin.PluginIndicator
|
||||
List<Result> results = new List<Result>();
|
||||
if (allPlugins.Count == 0)
|
||||
{
|
||||
allPlugins = context.API.GetAllPlugins().Where(o => !PluginManager.IsSystemPlugin(o.Metadata)).ToList();
|
||||
allPlugins = context.API.GetAllPlugins().Where(o => !PluginManager.IsGenericPlugin(o.Metadata)).ToList();
|
||||
}
|
||||
|
||||
foreach (PluginMetadata metadata in allPlugins.Select(o => o.Metadata))
|
||||
@@ -45,19 +45,6 @@ namespace Wox.Plugin.PluginIndicator
|
||||
}
|
||||
}
|
||||
|
||||
//results.AddRange(UserSettingStorage.Instance.WebSearches.Where(o => o.ActionWord.StartsWith(query.Search) && o.Enabled).Select(n => new Result()
|
||||
//{
|
||||
// Title = n.ActionWord,
|
||||
// SubTitle = string.Format("Activate {0} web search", n.ActionWord),
|
||||
// Score = 100,
|
||||
// IcoPath = "Images/work.png",
|
||||
// Action = (c) =>
|
||||
// {
|
||||
// context.API.ChangeQuery(n.ActionWord + " ");
|
||||
// return false;
|
||||
// }
|
||||
//}));
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user