mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-04 20:21:18 +08:00
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
@ -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 New Issue
Block a user