Don't refresh the repo list until after the new directory has been moved into place

This commit is contained in:
Simon Pither 2010-06-16 15:33:30 +01:00
parent 19dc30a5b4
commit fe1e9e6bf7

View file

@ -168,11 +168,12 @@ namespace SparkleShare {
} else {
SparkleHelpers.DebugInfo ("Git", "[" + RepoName + "] Repository cloned");
SparkleShare.SparkleUI.UpdateRepositories ();
Directory.Move (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath, RepoName),
SparkleHelpers.CombineMore (SparklePaths.SparklePath, RepoName));
SparkleShare.SparkleUI.UpdateRepositories ();
// Show a confirmation notification
SparkleBubble FinishedBubble;
FinishedBubble = new SparkleBubble (String.Format(_("Successfully synced folder {0}"), RepoName),