SparkleDialog: move or delete depending on succes after cloning is done
This commit is contained in:
parent
a349e5d841
commit
42bc524229
1
AUTHORS
1
AUTHORS
|
@ -12,3 +12,4 @@ Contributors:
|
|||
Sandy Armstrong <sanfordarmstrong@gmail.com>
|
||||
Philipp Gildein <rmbl@openspeak-project.org>
|
||||
Oleg Khlystov <pktfag@gmail.com>
|
||||
Simon Pither <simon@pither.com>
|
||||
|
|
|
@ -156,6 +156,8 @@ namespace SparkleShare {
|
|||
"Please double check the address and\n" +
|
||||
"network connection.");
|
||||
|
||||
Directory.Delete (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath, RepoName));
|
||||
|
||||
ErrorBubble.AddAction ("", _("Try Again…"),
|
||||
delegate {
|
||||
SparkleDialog SparkleDialog = new SparkleDialog (RepoRemoteUrl);
|
||||
|
@ -168,6 +170,9 @@ namespace SparkleShare {
|
|||
SparkleHelpers.DebugInfo ("Git", "[" + RepoName + "] Repository cloned");
|
||||
SparkleShare.SparkleUI.UpdateRepositories ();
|
||||
|
||||
Directory.Move (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath, RepoName),
|
||||
SparkleHelpers.CombineMore (SparklePaths.SparklePath, RepoName));
|
||||
|
||||
// Show a confirmation notification
|
||||
SparkleBubble FinishedBubble;
|
||||
FinishedBubble = new SparkleBubble (String.Format(_("Successfully synced folder ‘{0}’"), RepoName),
|
||||
|
|
Loading…
Reference in a new issue