mac watcher: leave top level subfolder changes to the SparkleRepo watcher
This commit is contained in:
parent
a12373ea58
commit
dbdcf5d469
|
@ -43,6 +43,11 @@ namespace SparkleShare {
|
||||||
else
|
else
|
||||||
repo_name = path;
|
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 ());
|
repo_name = repo_name.Trim ("/".ToCharArray ());
|
||||||
FileSystemEventArgs args = new FileSystemEventArgs (WatcherChangeTypes.Changed,
|
FileSystemEventArgs args = new FileSystemEventArgs (WatcherChangeTypes.Changed,
|
||||||
Path.Combine (SparklePaths.SparklePath, path), Path.GetFileName (path));
|
Path.Combine (SparklePaths.SparklePath, path), Path.GetFileName (path));
|
||||||
|
|
Loading…
Reference in a new issue