mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Add Google suggestions for web searches
Fix issues with push results
This commit is contained in:
@@ -27,17 +27,17 @@ namespace Wox.Commands
|
||||
{
|
||||
try
|
||||
{
|
||||
thirdPlugin.InitContext.PushResults = r =>
|
||||
thirdPlugin.InitContext.PushResults = (qu, r) =>
|
||||
{
|
||||
r.ForEach(o =>
|
||||
{
|
||||
o.PluginDirectory = thirdPlugin.Metadata.PluginDirecotry;
|
||||
o.OriginQuery = q;
|
||||
o.OriginQuery = qu;
|
||||
});
|
||||
UpdateResultView(r);
|
||||
};
|
||||
List<Result> results = thirdPlugin.Plugin.Query(q) ?? new List<Result>();
|
||||
thirdPlugin.InitContext.PushResults(results);
|
||||
thirdPlugin.InitContext.PushResults(q, results);
|
||||
}
|
||||
catch (Exception queryException)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user