diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs index d00216d6..75d20faa 100755 --- a/SparkleLib/SparkleRepoBase.cs +++ b/SparkleLib/SparkleRepoBase.cs @@ -221,7 +221,7 @@ namespace SparkleLib { if (args != null) { foreach (string exclude_path in ExcludePaths) { - if (args.FullPath.Contains (exclude_path)) + if (args.FullPath.Contains (Path.DirectorySeparatorChar + exclude_path)) return; } } diff --git a/SparkleShare/Mac/SparkleController.cs b/SparkleShare/Mac/SparkleController.cs index be62809d..fbddb9e4 100755 --- a/SparkleShare/Mac/SparkleController.cs +++ b/SparkleShare/Mac/SparkleController.cs @@ -63,11 +63,8 @@ namespace SparkleShare { // FIXME: There are cases where the wrong repo is triggered, so // we trigger all of them for now. Causes only slightly more overhead - foreach (SparkleRepoBase repo in Repositories) { - new Thread (() => { - repo.OnFileActivity (fse_args); - }).Start (); - } + foreach (SparkleRepoBase repo in Repositories) + new Thread (() => { repo.OnFileActivity (fse_args); }).Start (); }; }