mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Move web search setting to its own project
This commit is contained in:
@@ -45,18 +45,18 @@ 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;
|
||||
}
|
||||
}));
|
||||
//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