refresh ui when adding new folder and fix syncing
This commit is contained in:
parent
2aa7576a84
commit
b29e3b3b49
|
@ -205,6 +205,7 @@ namespace SparkleShare {
|
||||||
Process.Start();
|
Process.Start();
|
||||||
} );
|
} );
|
||||||
Destroy ();
|
Destroy ();
|
||||||
|
SparkleShare.SparkleUI = new SparkleUI (true);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,18 @@ namespace SparkleShare {
|
||||||
FetchTimer.Start();
|
FetchTimer.Start();
|
||||||
BufferTimer = new Timer ();
|
BufferTimer = new Timer ();
|
||||||
|
|
||||||
|
BufferTimer.Elapsed += delegate (object o, ElapsedEventArgs args) {
|
||||||
|
Console.WriteLine ("[Buffer][" + Name + "] Done waiting.");
|
||||||
|
Add ();
|
||||||
|
string Message = FormatCommitMessage ();
|
||||||
|
if (!Message.Equals ("")) {
|
||||||
|
Commit (Message);
|
||||||
|
Fetch ();
|
||||||
|
Push ();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// Add everything that changed
|
// Add everything that changed
|
||||||
// since SparkleShare was stopped
|
// since SparkleShare was stopped
|
||||||
Add ();
|
Add ();
|
||||||
|
@ -151,16 +163,6 @@ namespace SparkleShare {
|
||||||
BufferTimer.Close ();
|
BufferTimer.Close ();
|
||||||
BufferTimer = new Timer ();
|
BufferTimer = new Timer ();
|
||||||
BufferTimer.Interval = Interval;
|
BufferTimer.Interval = Interval;
|
||||||
BufferTimer.Elapsed += delegate (object o, ElapsedEventArgs args) {
|
|
||||||
Console.WriteLine ("[Buffer][" + Name + "] Done waiting.");
|
|
||||||
Add ();
|
|
||||||
string Message = FormatCommitMessage ();
|
|
||||||
if (!Message.Equals ("")) {
|
|
||||||
Commit (Message);
|
|
||||||
Fetch ();
|
|
||||||
Push ();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
FetchTimer.Start ();
|
FetchTimer.Start ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue