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;