From 72a304436ac27376459df2fc29c8deec66ddeacd Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 10 Jun 2013 15:25:59 +0100 Subject: [PATCH] setup: Fix path being saved where it shouldn't after closing window --- SparkleShare/SparkleSetupController.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SparkleShare/SparkleSetupController.cs b/SparkleShare/SparkleSetupController.cs index 7e98e5cb..9676c2bf 100755 --- a/SparkleShare/SparkleSetupController.cs +++ b/SparkleShare/SparkleSetupController.cs @@ -184,14 +184,12 @@ namespace SparkleShare { ChangePageEvent (PageType.Add, null); } - ShowWindowEvent (); - } else if (!Program.Controller.FirstRun && TutorialPageNumber == 0) { WindowIsOpen = true; ChangePageEvent (PageType.Add, null); - ShowWindowEvent (); } + ShowWindowEvent (); return; } @@ -206,10 +204,13 @@ namespace SparkleShare { { PendingInvite = null; SelectedPlugin = Plugins [0]; + PreviousAddress = ""; PreviousPath = ""; PreviousUrl = ""; + this.saved_address = ""; + this.saved_remote_path = ""; this.fetch_prior_history = false; WindowIsOpen = false; @@ -570,6 +571,7 @@ namespace SparkleShare { this.fetch_prior_history = false; this.current_page = PageType.None; + WindowIsOpen = false; HideWindowEvent (); }