diff --git a/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs b/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs index 29bc11480a2..dd768afb4ec 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs @@ -30,6 +30,11 @@ public void UpdatePluginSettings(List metadatas) metadata.ActionKeywords = settings.ActionKeywords; metadata.ActionKeyword = settings.ActionKeywords[0]; } + else + { + metadata.ActionKeywords = new List(); + metadata.ActionKeyword = string.Empty; + } metadata.Disabled = settings.Disabled; metadata.Priority = settings.Priority; } diff --git a/Flow.Launcher/ViewModel/PluginViewModel.cs b/Flow.Launcher/ViewModel/PluginViewModel.cs index 7c8814b4188..1ac320cf0cf 100644 --- a/Flow.Launcher/ViewModel/PluginViewModel.cs +++ b/Flow.Launcher/ViewModel/PluginViewModel.cs @@ -1,7 +1,6 @@ using System.Windows; using System.Windows.Media; using Flow.Launcher.Plugin; -using Flow.Launcher.Core.Resource; using Flow.Launcher.Infrastructure.Image; using Flow.Launcher.Core.Plugin; @@ -11,8 +10,6 @@ public class PluginViewModel : BaseModel { public PluginPair PluginPair { get; set; } - private readonly Internationalization _translator = InternationalizationManager.Instance; - public ImageSource Image => ImageLoader.Load(PluginPair.Metadata.IcoPath); public bool PluginState { @@ -22,7 +19,7 @@ public bool PluginState PluginPair.Metadata.Disabled = !value; } } - public Visibility ActionKeywordsVisibility => PluginPair.Metadata.ActionKeywords.Count > 1 ? Visibility.Collapsed : Visibility.Visible; + public Visibility ActionKeywordsVisibility => PluginPair.Metadata.ActionKeywords.Count == 1 ? Visibility.Visible : Visibility.Collapsed; public string InitilizaTime => PluginPair.Metadata.InitTime.ToString() + "ms"; public string QueryTime => PluginPair.Metadata.AvgQueryTime + "ms"; public string ActionKeywordsText => string.Join(Query.ActionKeywordSeperater, PluginPair.Metadata.ActionKeywords); diff --git a/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml index ce84aa65b5f..e00534367d4 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml @@ -13,8 +13,11 @@ Reindex Indexing Index Start Menu + When enabled, Flow will load programs from the start menu Index Registry + When enabled, Flow will load programs from the registry Enable Program Description + Disabling this will also stop Flow from searching via the program desciption Suffixes Max Depth diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml index 45f2a609d8a..8712cdb8382 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml @@ -16,9 +16,9 @@ - - - + + +