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 51d42168ce
commit b81d462a8e

View file

@ -184,14 +184,12 @@ namespace SparkleShare {
ChangePageEvent (PageType.Add, null); ChangePageEvent (PageType.Add, null);
} }
ShowWindowEvent ();
} else if (!Program.Controller.FirstRun && TutorialPageNumber == 0) { } else if (!Program.Controller.FirstRun && TutorialPageNumber == 0) {
WindowIsOpen = true; WindowIsOpen = true;
ChangePageEvent (PageType.Add, null); ChangePageEvent (PageType.Add, null);
ShowWindowEvent ();
} }
ShowWindowEvent ();
return; return;
} }
@ -206,10 +204,13 @@ namespace SparkleShare {
{ {
PendingInvite = null; PendingInvite = null;
SelectedPlugin = Plugins [0]; SelectedPlugin = Plugins [0];
PreviousAddress = ""; PreviousAddress = "";
PreviousPath = ""; PreviousPath = "";
PreviousUrl = ""; PreviousUrl = "";
this.saved_address = "";
this.saved_remote_path = "";
this.fetch_prior_history = false; this.fetch_prior_history = false;
WindowIsOpen = false; WindowIsOpen = false;
@ -570,6 +571,7 @@ namespace SparkleShare {
this.fetch_prior_history = false; this.fetch_prior_history = false;
this.current_page = PageType.None; this.current_page = PageType.None;
WindowIsOpen = false;
HideWindowEvent (); HideWindowEvent ();
} }