repo: ignore external watchers when watching is disabled

This commit is contained in:
Hylke Bons 2011-06-22 16:02:03 +01:00
parent 28d38176c9
commit 75afaff2cd

View file

@ -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;