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:
parent
3dd181c912
commit
a047ff2228
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue