From 12fde5007bf81d6ed6e127ebd3ca7f1764da0ea6 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 11 Apr 2012 23:09:12 +0200 Subject: [PATCH] setup: reorder some Add button logic --- SparkleShare/SparkleSetupController.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/SparkleShare/SparkleSetupController.cs b/SparkleShare/SparkleSetupController.cs index 9ceedbed..a94c54c7 100755 --- a/SparkleShare/SparkleSetupController.cs +++ b/SparkleShare/SparkleSetupController.cs @@ -331,20 +331,21 @@ namespace SparkleShare { public void AddPageCompleted (string address, string remote_path) { + SyncingFolder = Path.GetFileNameWithoutExtension (remote_path); + + if (ChangePageEvent != null) + ChangePageEvent (PageType.Syncing, null); + address = address.Trim (); remote_path = remote_path.Trim (); remote_path = remote_path.TrimEnd ("/".ToCharArray ()); if (SelectedPlugin.PathUsesLowerCase) remote_path = remote_path.ToLower (); - - SyncingFolder = Path.GetFileNameWithoutExtension (remote_path); + PreviousAddress = address; PreviousPath = remote_path; - if (ChangePageEvent != null) - ChangePageEvent (PageType.Syncing, null); - Program.Controller.FolderFetched += AddPageFetchedDelegate; Program.Controller.FolderFetchError += AddPageFetchErrorDelegate; Program.Controller.FolderFetching += SyncingPageFetchingDelegate;