mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Support allow modify action keywords & WebSearch does not let user change its keywords
This commit is contained in:
parent
8f6bed45e4
commit
e1f1b97b7e
3 changed files with 4 additions and 1 deletions
|
|
@ -34,6 +34,8 @@ namespace Flow.Launcher.Plugin
|
|||
|
||||
public List<string> ActionKeywords { get; set; }
|
||||
|
||||
public bool AllowModifyActionKeywords { get; set; } = true;
|
||||
|
||||
public string IcoPath { get; set;}
|
||||
|
||||
public override string ToString()
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ namespace Flow.Launcher.ViewModel
|
|||
: null;
|
||||
private ImageSource _image = ImageLoader.MissingImage;
|
||||
|
||||
public Visibility ActionKeywordsVisibility => PluginPair.Metadata.ActionKeywords.Count == 1 ? Visibility.Visible : Visibility.Collapsed;
|
||||
public Visibility ActionKeywordsVisibility => PluginPair.Metadata.AllowModifyActionKeywords ? Visibility.Visible : Visibility.Collapsed;
|
||||
public string InitilizaTime => PluginPair.Metadata.InitTime + "ms";
|
||||
public string QueryTime => PluginPair.Metadata.AvgQueryTime + "ms";
|
||||
public string Version => InternationalizationManager.Instance.GetTranslation("plugin_query_version") + " " + PluginPair.Metadata.Version;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
"yahoo",
|
||||
"bd"
|
||||
],
|
||||
"AllowModifyActionKeywords": false,
|
||||
"Name": "Web Searches",
|
||||
"Description": "Provide the web search ability",
|
||||
"Author": "qianlifeng",
|
||||
|
|
|
|||
Loading…
Reference in a new issue