mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Update Main.cs
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user