controller: disable/enable main folder watcher during the right times
This commit is contained in:
parent
3e8e809b00
commit
8a53e8571d
|
@ -552,14 +552,14 @@ namespace SparkleShare {
|
|||
{
|
||||
this.fetcher.EnableFetchedRepoCrypto (password);
|
||||
|
||||
this.watcher.EnableRaisingEvents = false;
|
||||
FinishFetcher ();
|
||||
this.watcher.EnableRaisingEvents = true;
|
||||
}
|
||||
|
||||
|
||||
public void FinishFetcher ()
|
||||
{
|
||||
this.watcher.EnableRaisingEvents = false;
|
||||
|
||||
this.fetcher.Complete ();
|
||||
string canonical_name = Path.GetFileNameWithoutExtension (this.fetcher.RemoteUrl.AbsolutePath);
|
||||
|
||||
|
@ -609,6 +609,8 @@ namespace SparkleShare {
|
|||
|
||||
this.fetcher.Dispose ();
|
||||
this.fetcher = null;
|
||||
|
||||
this.watcher.EnableRaisingEvents = true;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue