mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
@@ -104,7 +104,10 @@ namespace Wox.Plugin.WebSearch
|
|||||||
Url = url,
|
Url = url,
|
||||||
Title = title
|
Title = title
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//save the action keywords, the order is not metters. Wox will read this metadata when save settings.
|
||||||
context.CurrentPluginMetadata.ActionKeywords.Add(action);
|
context.CurrentPluginMetadata.ActionKeywords.Add(action);
|
||||||
|
|
||||||
string msg = context.API.GetTranslation("wox_plugin_websearch_succeed");
|
string msg = context.API.GetTranslation("wox_plugin_websearch_succeed");
|
||||||
MessageBox.Show(msg);
|
MessageBox.Show(msg);
|
||||||
}
|
}
|
||||||
@@ -121,7 +124,10 @@ namespace Wox.Plugin.WebSearch
|
|||||||
updateWebSearch.Enabled = cbEnable.IsChecked ?? false;
|
updateWebSearch.Enabled = cbEnable.IsChecked ?? false;
|
||||||
updateWebSearch.Url = url;
|
updateWebSearch.Url = url;
|
||||||
updateWebSearch.Title= title;
|
updateWebSearch.Title= title;
|
||||||
|
|
||||||
|
//save the action keywords, the order is not metters. Wox will read this metadata when save settings.
|
||||||
context.CurrentPluginMetadata.ActionKeywords.Add(action);
|
context.CurrentPluginMetadata.ActionKeywords.Add(action);
|
||||||
|
|
||||||
string msg = context.API.GetTranslation("wox_plugin_websearch_succeed");
|
string msg = context.API.GetTranslation("wox_plugin_websearch_succeed");
|
||||||
MessageBox.Show(msg);
|
MessageBox.Show(msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user