controller: disable buggy on the fly folder deletion for now

This commit is contained in:
Hylke Bons 2013-01-05 16:10:29 +01:00
parent 34b0334418
commit 4be9ebe895

View file

@ -240,9 +240,9 @@ namespace SparkleShare {
Path = FoldersPath Path = FoldersPath
}; };
watcher.Deleted += OnFolderActivity;
watcher.Created += OnFolderActivity; watcher.Created += OnFolderActivity;
watcher.Renamed += OnFolderActivity; // FIXME watcher.Deleted += OnFolderActivity;
// FIXME watcher.Renamed += OnFolderActivity;
watcher.EnableRaisingEvents = true; watcher.EnableRaisingEvents = true;
} }
@ -478,14 +478,14 @@ namespace SparkleShare {
HandleInvite (args); HandleInvite (args);
return; return;
} else { }/* else { FIXME: on the fly folder removal doesn't always work. disabling for now
Thread.Sleep (1000); Thread.Sleep (1000);
if (Directory.Exists (args.FullPath) && args.ChangeType == WatcherChangeTypes.Created) if (Directory.Exists (args.FullPath) && args.ChangeType == WatcherChangeTypes.Created)
return; return;
CheckRepositories (); CheckRepositories ();
} }*/
} }