mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
remove unused new list
This commit is contained in:
@@ -172,13 +172,13 @@ namespace Wox.Core.Plugin
|
|||||||
|
|
||||||
public static List<Result> QueryForPlugin(PluginPair pair, Query query)
|
public static List<Result> QueryForPlugin(PluginPair pair, Query query)
|
||||||
{
|
{
|
||||||
var results = new List<Result>();
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
List<Result> results = null;
|
||||||
var metadata = pair.Metadata;
|
var metadata = pair.Metadata;
|
||||||
var milliseconds = Stopwatch.Debug($"|PluginManager.QueryForPlugin|Cost for {metadata.Name}", () =>
|
var milliseconds = Stopwatch.Debug($"|PluginManager.QueryForPlugin|Cost for {metadata.Name}", () =>
|
||||||
{
|
{
|
||||||
results = pair.Plugin.Query(query) ?? results;
|
results = pair.Plugin.Query(query) ?? new List<Result>();
|
||||||
UpdatePluginMetadata(results, metadata, query);
|
UpdatePluginMetadata(results, metadata, query);
|
||||||
});
|
});
|
||||||
metadata.QueryCount += 1;
|
metadata.QueryCount += 1;
|
||||||
|
|||||||
@@ -415,7 +415,6 @@ namespace Wox.ViewModel
|
|||||||
var config = _settings.PluginSettings.Plugins[plugin.Metadata.ID];
|
var config = _settings.PluginSettings.Plugins[plugin.Metadata.ID];
|
||||||
if (!config.Disabled)
|
if (!config.Disabled)
|
||||||
{
|
{
|
||||||
|
|
||||||
var results = PluginManager.QueryForPlugin(plugin, query);
|
var results = PluginManager.QueryForPlugin(plugin, query);
|
||||||
UpdateResultView(results, plugin.Metadata, query);
|
UpdateResultView(results, plugin.Metadata, query);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user