fix path and cleanups
This commit is contained in:
parent
34924a7200
commit
d107fd692d
|
@ -264,13 +264,11 @@ namespace SparkleShare {
|
||||||
|
|
||||||
// Pushes the changes to the remote repo
|
// Pushes the changes to the remote repo
|
||||||
public void Push () {
|
public void Push () {
|
||||||
// TODO: What happens when network disconnects during a push
|
|
||||||
Console.WriteLine ("[Git][" + Name + "] Pushing changes...");
|
Console.WriteLine ("[Git][" + Name + "] Pushing changes...");
|
||||||
Process.StartInfo.Arguments = "push";
|
Process.StartInfo.Arguments = "push";
|
||||||
Process.Start();
|
Process.Start();
|
||||||
Process.WaitForExit ();
|
Process.WaitForExit ();
|
||||||
Console.WriteLine ("[Git][" + Name + "] Changes pushed.");
|
Console.WriteLine ("[Git][" + Name + "] Changes pushed.");
|
||||||
|
|
||||||
// SparkleUI.NotificationIcon.SetIdleState ();
|
// SparkleUI.NotificationIcon.SetIdleState ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,8 +106,6 @@ namespace SparkleShare {
|
||||||
LayoutVertical.PackStart (DialogButtons, false, false, 0);
|
LayoutVertical.PackStart (DialogButtons, false, false, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Fetch remote changes every 20 seconds
|
|
||||||
/* Timer RedrawTimer = new Timer ();
|
/* Timer RedrawTimer = new Timer ();
|
||||||
RedrawTimer.Interval = 5000;
|
RedrawTimer.Interval = 5000;
|
||||||
RedrawTimer.Elapsed += delegate {
|
RedrawTimer.Elapsed += delegate {
|
||||||
|
@ -486,7 +484,8 @@ namespace SparkleShare {
|
||||||
AddDialog.Remove (AddDialog.Child);
|
AddDialog.Remove (AddDialog.Child);
|
||||||
VBox Box = new VBox (false, 24);
|
VBox Box = new VBox (false, 24);
|
||||||
SparkleSpinner Spinner = new SparkleSpinner ();
|
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 (Spinner, false, false, 0);
|
||||||
Box.PackStart (Label, false, false, 0);
|
Box.PackStart (Label, false, false, 0);
|
||||||
AddDialog.BorderWidth = 30;
|
AddDialog.BorderWidth = 30;
|
||||||
|
@ -556,7 +555,8 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Quit (object o, EventArgs args) {
|
public void Quit (object o, EventArgs args) {
|
||||||
File.Delete (SparklePaths.SparkleTmpPath + "sparkleshare.pid");
|
File.Delete (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath +
|
||||||
|
"sparkleshare.pid"));
|
||||||
Application.Quit ();
|
Application.Quit ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue