mac watcher: leave top level subfolder changes to the SparkleRepo watcher
This commit is contained in:
parent
27be7bddb4
commit
88c6a515be
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue