setup: close window after clicking Open Folder button and move said logic to controller

This commit is contained in:
Hylke Bons 2012-02-18 23:59:24 +01:00
parent a2e3f2e842
commit 1b2fb55aa4
3 changed files with 11 additions and 2 deletions

View file

@ -599,7 +599,7 @@ namespace SparkleShare {
};
OpenFolderButton.Activated += delegate {
Program.Controller.OpenSparkleShareFolder (Path.GetFileName (Controller.PreviousPath));
Controller.OpenFolderClicked ();
};
Buttons.Add (FinishButton);

View file

@ -456,7 +456,7 @@ namespace SparkleShare {
Button open_folder_button = new Button (_("Open Folder"));
open_folder_button.Clicked += delegate {
Program.Controller.OpenSparkleShareFolder (System.IO.Path.GetFileName (Controller.PreviousPath));
Controller.OpenFolderClicked ();
};
Button finish_button = new Button (_("Finish"));

View file

@ -384,6 +384,15 @@ namespace SparkleShare {
}
public void OpenFolderClicked ()
{
Program.Controller.OpenSparkleShareFolder (
Path.GetFileName (PreviousPath));
FinishPageCompleted ();
}
public void FinishPageCompleted ()
{
PreviousAddress = "";