Update Main.cs

This commit is contained in:
Jeremy Wu 2019-08-02 12:32:02 +10:00 committed by GitHub
parent 52252453d9
commit 89f0cdffc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ namespace Wox.Plugin.WebSearch
public const string Images = "Images"; public const string Images = "Images";
public static string ImagesDirectory; public static string ImagesDirectory;
private readonly string SystemPluginSearchSourceWildCardSign = "*"; private readonly string SearchSourceGlobalPluginWildCardSign = "*";
public void Save() public void Save()
{ {
@ -38,7 +38,7 @@ namespace Wox.Plugin.WebSearch
var searchSourceList = new List<SearchSource>(); var searchSourceList = new List<SearchSource>();
_settings.SearchSources.Where(o => (o.ActionKeyword == query.ActionKeyword || o.ActionKeyword == SystemPluginSearchSourceWildCardSign) _settings.SearchSources.Where(o => (o.ActionKeyword == query.ActionKeyword || o.ActionKeyword == SearchSourceGlobalPluginWildCardSign)
&& o.Enabled) && o.Enabled)
.ToList() .ToList()
.ForEach(x => searchSourceList.Add(x)); .ForEach(x => searchSourceList.Add(x));
@ -168,4 +168,4 @@ namespace Wox.Plugin.WebSearch
public event ResultUpdatedEventHandler ResultsUpdated; public event ResultUpdatedEventHandler ResultsUpdated;
} }
} }