fix #252 web search items lost after restart Wox

This commit is contained in:
qianlifeng
2015-02-20 21:14:15 +08:00
parent 21e5f33487
commit b1a97eca39
9 changed files with 23 additions and 18 deletions

View File

@@ -2,15 +2,15 @@
{
public class SuggestionSourceFactory
{
public static ISuggestionSource GetSuggestionSource(string name)
public static ISuggestionSource GetSuggestionSource(string name,PluginInitContext context)
{
switch (name.ToLower())
{
case "google":
return new Google();
return new Google(context.Proxy);
case "baidu":
return new Baidu();
return new Baidu(context.Proxy);
default:
return null;