From fe1e9e6bf7bd602806eaa85009347cc825d0b5df Mon Sep 17 00:00:00 2001 From: Simon Pither Date: Wed, 16 Jun 2010 15:33:30 +0100 Subject: [PATCH] Don't refresh the repo list until after the new directory has been moved into place --- SparkleShare/SparkleDialog.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleDialog.cs b/SparkleShare/SparkleDialog.cs index ede1f9cc..a7f4a79b 100644 --- a/SparkleShare/SparkleDialog.cs +++ b/SparkleShare/SparkleDialog.cs @@ -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),