fix path and cleanups

This commit is contained in:
Hylke Bons 2010-05-11 01:03:35 +01:00
parent 34924a7200
commit d107fd692d
2 changed files with 4 additions and 6 deletions

View file

@ -264,13 +264,11 @@ namespace SparkleShare {
// Pushes the changes to the remote repo
public void Push () {
// TODO: What happens when network disconnects during a push
Console.WriteLine ("[Git][" + Name + "] Pushing changes...");
Process.StartInfo.Arguments = "push";
Process.Start();
Process.WaitForExit ();
Console.WriteLine ("[Git][" + Name + "] Changes pushed.");
// SparkleUI.NotificationIcon.SetIdleState ();
}

View file

@ -106,8 +106,6 @@ namespace SparkleShare {
LayoutVertical.PackStart (DialogButtons, false, false, 0);
// Fetch remote changes every 20 seconds
/* Timer RedrawTimer = new Timer ();
RedrawTimer.Interval = 5000;
RedrawTimer.Elapsed += delegate {
@ -486,7 +484,8 @@ namespace SparkleShare {
AddDialog.Remove (AddDialog.Child);
VBox Box = new VBox (false, 24);
SparkleSpinner Spinner = new SparkleSpinner ();
Label Label = new Label ("Downloading files,\nthis may take a while...");
Label Label = new Label ("Downloading files,\n" +
"this may take a while...");
Box.PackStart (Spinner, false, false, 0);
Box.PackStart (Label, false, false, 0);
AddDialog.BorderWidth = 30;
@ -556,7 +555,8 @@ namespace SparkleShare {
}
public void Quit (object o, EventArgs args) {
File.Delete (SparklePaths.SparkleTmpPath + "sparkleshare.pid");
File.Delete (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath +
"sparkleshare.pid"));
Application.Quit ();
}