mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
@@ -230,7 +230,7 @@ namespace Wox.Plugin.PluginManagement
|
||||
List<Result> results = new List<Result>();
|
||||
foreach (PluginMetadata plugin in context.API.GetAllPlugins().Select(o => o.Metadata))
|
||||
{
|
||||
string actionKeywordString = string.Join(" or ", plugin.ActionKeywords);
|
||||
string actionKeywordString = string.Join(" or ", plugin.ActionKeywords.ToArray());
|
||||
results.Add(new Result
|
||||
{
|
||||
Title = $"{plugin.Name} - Action Keywords: {actionKeywordString}",
|
||||
|
||||
@@ -104,6 +104,7 @@ namespace Wox.Plugin.WebSearch
|
||||
Url = url,
|
||||
Title = title
|
||||
});
|
||||
context.CurrentPluginMetadata.ActionKeywords.Add(action);
|
||||
string msg = context.API.GetTranslation("wox_plugin_websearch_succeed");
|
||||
MessageBox.Show(msg);
|
||||
}
|
||||
@@ -120,10 +121,12 @@ namespace Wox.Plugin.WebSearch
|
||||
updateWebSearch.Enabled = cbEnable.IsChecked ?? false;
|
||||
updateWebSearch.Url = url;
|
||||
updateWebSearch.Title= title;
|
||||
context.CurrentPluginMetadata.ActionKeywords.Add(action);
|
||||
string msg = context.API.GetTranslation("wox_plugin_websearch_succeed");
|
||||
MessageBox.Show(msg);
|
||||
}
|
||||
WebSearchStorage.Instance.Save();
|
||||
|
||||
settingWindow.ReloadWebSearchView();
|
||||
Close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user