Add dynamic Delete to the Enable/Disable button

This commit is contained in:
Jeremy Wu
2019-10-17 06:43:18 +11:00
parent ac79803f1b
commit 34a3535abe
9 changed files with 47 additions and 33 deletions

View File

@@ -137,7 +137,7 @@ namespace Wox.Plugin.Program.Views.Commands
&& selectedItems.Where(t1 => t1.Enabled && !Main._win32s.Any(x => t1.UniqueIdentifier == x.UniqueIdentifier)).Count() > 0)
return true;
// Program Sources holds list of user added directories,
// ProgramSources holds list of user added directories,
// so when we enable/disable we need to reindex to show/not show the programs
// that are found in those directories.
if (selectedItems.Where(t1 => Main._settings.ProgramSources.Any(x => t1.UniqueIdentifier == x.UniqueIdentifier)).Count() > 0)