setup: Fix path being saved where it shouldn't after closing window

This commit is contained in:
Hylke Bons 2013-06-10 15:25:59 +01:00
parent 077dc08bb5
commit 72a304436a

View file

@ -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 ();
}