[repo] Add todo and fix syncing animation for fetching
This commit is contained in:
parent
7f0e77d288
commit
69bb7d62a0
|
@ -218,6 +218,8 @@ namespace SparkleLib {
|
||||||
private void Add ()
|
private void Add ()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// TODO: Check whether adding files is neccassary
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Staging changes...");
|
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Staging changes...");
|
||||||
|
|
||||||
Process.StartInfo.Arguments = "add --all";
|
Process.StartInfo.Arguments = "add --all";
|
||||||
|
@ -271,17 +273,20 @@ namespace SparkleLib {
|
||||||
|
|
||||||
Process.StartInfo.Arguments = "fetch";
|
Process.StartInfo.Arguments = "fetch";
|
||||||
|
|
||||||
Process.WaitForExit ();
|
|
||||||
Process.Start ();
|
Process.Start ();
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes fetched.");
|
Process.Exited += delegate {
|
||||||
|
|
||||||
args = new SparkleEventArgs ("FetchingFinished");
|
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes fetched.");
|
||||||
|
|
||||||
if (FetchingFinished != null)
|
args = new SparkleEventArgs ("FetchingFinished");
|
||||||
FetchingFinished (this, args);
|
|
||||||
|
|
||||||
Rebase ();
|
if (FetchingFinished != null)
|
||||||
|
FetchingFinished (this, args);
|
||||||
|
|
||||||
|
Rebase ();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue