diff --git a/Plugins/Flow.Launcher.Plugin.Program/Main.cs b/Plugins/Flow.Launcher.Plugin.Program/Main.cs index 9c9b9b912..634382109 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Main.cs @@ -147,10 +147,15 @@ namespace Flow.Launcher.Plugin.Program var t1 = Task.Run(IndexWin32Programs); var t2 = Task.Run(IndexUwpPrograms); await Task.WhenAll(t1, t2).ConfigureAwait(false); + ResetCache(); + _settings.LastIndexTime = DateTime.Today; + } + + internal static void ResetCache() + { var oldCache = cache; cache = new MemoryCache(cacheOptions); oldCache.Dispose(); - _settings.LastIndexTime = DateTime.Today; } public Control CreateSettingPanel() diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs index 18b5553ce..2a04b2b2e 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs @@ -314,7 +314,7 @@ namespace Flow.Launcher.Plugin.Program.Programs var result = new Result { Title = title, - SubTitle = Main._settings.EnableHideAppsPath ? string.Empty : Package.Location, + SubTitle = Main._settings.HideAppsPath ? string.Empty : Package.Location, Icon = Logo, Score = matchResult.Score, TitleHighlightData = matchResult.MatchData, diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index bc024bbfc..1464bd785 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -97,7 +97,7 @@ namespace Flow.Launcher.Plugin.Program.Programs var result = new Result { Title = title, - SubTitle = Main._settings.EnableHideAppsPath ? string.Empty : LnkResolvedPath ?? FullPath, + SubTitle = Main._settings.HideAppsPath ? string.Empty : LnkResolvedPath ?? FullPath, IcoPath = IcoPath, Score = matchResult.Score, TitleHighlightData = matchResult.MatchData, diff --git a/Plugins/Flow.Launcher.Plugin.Program/Settings.cs b/Plugins/Flow.Launcher.Plugin.Program/Settings.cs index c6f8a00a1..d97ddd993 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Settings.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Settings.cs @@ -14,7 +14,7 @@ namespace Flow.Launcher.Plugin.Program public bool EnableStartMenuSource { get; set; } = true; public bool EnableDescription { get; set; } = false; - public bool EnableHideAppsPath { get; set; } = true; + public bool HideAppsPath { get; set; } = true; public bool EnableRegistrySource { get; set; } = true; public string CustomizedExplorer { get; set; } = Explorer; public string CustomizedArgs { get; set; } = ExplorerArgs; diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml index aa789c0ee..d3857bd58 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml @@ -1,123 +1,101 @@ - + - + - - + + - + - - + + - + - -