Add reindex call for enable/disable button

For when program source enable && disable + where program not in cache
This commit is contained in:
Jeremy Wu
2019-10-15 22:39:55 +11:00
parent 44c1c93e81
commit 85638c23ae
4 changed files with 42 additions and 32 deletions

View File

@@ -270,6 +270,8 @@ namespace Wox.Plugin.Program.Programs
sources.Where(s => Directory.Exists(s.Location) && s.Enabled)
.SelectMany(s => ProgramPaths(s.Location, suffixes))
.ToList()
.Where(t1 => !Main._settings.DisabledProgramSources.Any(x => t1 == x.UniqueIdentifier))
.ToList()
.ForEach(x => listToAdd.Add(x));
var paths = listToAdd.ToArray();