setup: fix Show Folder button for encrypted folders

This commit is contained in:
Hylke Bons 2012-10-19 23:52:37 +01:00
parent a679e29d4c
commit 205947502c

View file

@ -538,7 +538,15 @@ namespace SparkleShare {
public void OpenFolderClicked ()
{
Program.Controller.OpenSparkleShareFolder (Path.GetFileName (PreviousPath));
string folder_name = Path.GetFileName (PreviousPath);
if (PreviousPath.EndsWith ("-crypto"))
folder_name = PreviousPath.Replace ("-crypto", "");
if (PreviousPath.EndsWith ("-crypto.git"))
folder_name = PreviousPath.Replace ("-crypto.git", "");
Program.Controller.OpenSparkleShareFolder (folder_name);
FinishPageCompleted ();
}