diff --git a/SparkleShare/Mac/SparkleShare/sparkleshare-idle.png b/SparkleShare/Mac/SparkleShare/sparkleshare-idle.png index 7e52bead..d9762e20 100644 Binary files a/SparkleShare/Mac/SparkleShare/sparkleshare-idle.png and b/SparkleShare/Mac/SparkleShare/sparkleshare-idle.png differ diff --git a/SparkleShare/SparkleController.cs b/SparkleShare/SparkleController.cs index 17e83608..4b956fa4 100644 --- a/SparkleShare/SparkleController.cs +++ b/SparkleShare/SparkleController.cs @@ -421,12 +421,19 @@ namespace SparkleShare { } - public void OpenSparkleShareFolder () { + + OpenSparkleShareFolder (""); + + } + public void OpenSparkleShareFolder (string subfolder) + { + Process process = new Process (); - process.StartInfo.Arguments = SparklePaths.SparklePath; + process.StartInfo.Arguments = SparkleHelpers.CombineMore (SparklePaths.SparklePath, + subfolder).Replace (" ", "\\ "); // Escape space-characters string open_command_path = SparkleHelpers.CombineMore (Path.VolumeSeparatorChar.ToString (), "usr", "bin"); @@ -717,6 +724,8 @@ namespace SparkleShare { public void Quit () { + // TODO: Pop up a warning when quitting whilst syncing + foreach (SparkleRepo repo in Repositories) repo.Dispose (); diff --git a/SparkleShare/SparkleIntro.cs b/SparkleShare/SparkleIntro.cs index a329517f..741d4c85 100644 --- a/SparkleShare/SparkleIntro.cs +++ b/SparkleShare/SparkleIntro.cs @@ -488,17 +488,9 @@ namespace SparkleShare { // A button that opens the synced folder Button open_folder_button = new Button (_("Open Folder")); - open_folder_button.Clicked += delegate (object o, EventArgs args) { + open_folder_button.Clicked += delegate { - string path = SparkleHelpers.CombineMore (SparklePaths.SparklePath, folder_name); - - Process process = new Process (); - process.StartInfo.FileName = "xdg-open"; - process.StartInfo.Arguments = path.Replace (" ", "\\ "); // Escape space-characters - process.Start (); - - if (ServerFormOnly) - Destroy (); + SparkleShare.Controller.OpenSparkleShareFolder (folder_name); }; @@ -622,6 +614,8 @@ namespace SparkleShare { finish_button.Clicked += delegate (object o, EventArgs args) { + // TODO: This can probably go away as we're + // now always showing the status icon even without folders if (SparkleUI.StatusIcon == null) SparkleUI.StatusIcon = new SparkleStatusIcon (); else @@ -708,7 +702,7 @@ namespace SparkleShare { } - // Checks if a url is a valid git url + // Checks if a url is a valid git url TODO: broken private static bool IsGitUrl (string url) {