repo: ignore external watchers when watching is disabled
This commit is contained in:
parent
28d38176c9
commit
75afaff2cd
|
@ -297,6 +297,11 @@ namespace SparkleLib {
|
||||||
// Starts a timer when something changes
|
// Starts a timer when something changes
|
||||||
public void OnFileActivity (FileSystemEventArgs args)
|
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 + "."))
|
if (args.FullPath.Contains (Path.DirectorySeparatorChar + "."))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue