From 205947502c90d982f83e4d1263498b39bf041eec Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 19 Oct 2012 23:52:37 +0100 Subject: [PATCH] setup: fix Show Folder button for encrypted folders --- SparkleShare/SparkleSetupController.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleSetupController.cs b/SparkleShare/SparkleSetupController.cs index 5d17f93e..e1f7b643 100755 --- a/SparkleShare/SparkleSetupController.cs +++ b/SparkleShare/SparkleSetupController.cs @@ -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 (); }