Looking at files and not filtering is better because the timer is more likely to reset while an install is happening, preventing uneeded indexing

This commit is contained in:
ryanbodrug-microsoft 2020-04-26 08:03:26 -07:00
parent 3dd181c912
commit a047ff2228

View File

@ -188,9 +188,8 @@ namespace Wox.Plugin.Program
_watcher.Path = resolvedPath; _watcher.Path = resolvedPath;
//Filter to create and deletes of 'microsoft.system.package.metadata' directories. //Filter to create and deletes of 'microsoft.system.package.metadata' directories.
_watcher.NotifyFilter = NotifyFilters.DirectoryName; _watcher.NotifyFilter = NotifyFilters.DirectoryName | NotifyFilters.FileName;
_watcher.IncludeSubdirectories = true; _watcher.IncludeSubdirectories = true;
_watcher.Filter = "microsoft.system.package.metadata";
// Add event handlers. // Add event handlers.
_watcher.Created += OnChanged; _watcher.Created += OnChanged;