repo: ignore external watchers when watching is disabled
This commit is contained in:
parent
0ca5a25f3b
commit
5e54cbb5aa
|
@ -297,6 +297,11 @@ namespace SparkleLib {
|
|||
// Starts a timer when something changes
|
||||
public void OnFileActivity (FileSystemEventArgs args)
|
||||
{
|
||||
// Check the watcher for the occasions where this
|
||||
// method is called directly
|
||||
if (!this.watcher.EnableRaisingEvents)
|
||||
return;
|
||||
|
||||
if (args.FullPath.Contains (Path.DirectorySeparatorChar + "."))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue