From dbdcf5d469c9512d021e776ed4cd5ee7ca3f1a5f Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 2 Jun 2011 21:18:22 +0100 Subject: [PATCH] mac watcher: leave top level subfolder changes to the SparkleRepo watcher --- SparkleShare/Mac/SparkleMacController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SparkleShare/Mac/SparkleMacController.cs b/SparkleShare/Mac/SparkleMacController.cs index dc1ca34c..37ea6e7b 100644 --- a/SparkleShare/Mac/SparkleMacController.cs +++ b/SparkleShare/Mac/SparkleMacController.cs @@ -43,6 +43,11 @@ namespace SparkleShare { else repo_name = path; + // Ignore changes in the root of each subfolder, these + // are already handled bu the repository + if (Path.GetFileNameWithoutExtension (path).Equals (repo_name)) + return; + repo_name = repo_name.Trim ("/".ToCharArray ()); FileSystemEventArgs args = new FileSystemEventArgs (WatcherChangeTypes.Changed, Path.Combine (SparklePaths.SparklePath, path), Path.GetFileName (path));