log: fix Open Folder button
This commit is contained in:
parent
81a17653e0
commit
4245c26b6d
|
@ -199,7 +199,6 @@ namespace SparkleShare {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
string folder = SparkleHelpers.CombineMore (SparklePaths.SparklePath, subfolder);
|
string folder = SparkleHelpers.CombineMore (SparklePaths.SparklePath, subfolder);
|
||||||
|
|
||||||
Process process = new Process ();
|
Process process = new Process ();
|
||||||
process.StartInfo.Arguments = folder.Replace (" ", "\\ "); // Escape space-characters
|
process.StartInfo.Arguments = folder.Replace (" ", "\\ "); // Escape space-characters
|
||||||
process.StartInfo.FileName = "xdg-open";
|
process.StartInfo.FileName = "xdg-open";
|
||||||
|
|
|
@ -122,10 +122,7 @@ namespace SparkleShare {
|
||||||
};
|
};
|
||||||
|
|
||||||
open_folder_button.Clicked += delegate (object o, EventArgs args) {
|
open_folder_button.Clicked += delegate (object o, EventArgs args) {
|
||||||
Process process = new Process ();
|
SparkleShare.Controller.OpenSparkleShareFolder (LocalPath);
|
||||||
process.StartInfo.FileName = "xdg-open";
|
|
||||||
process.StartInfo.Arguments = LocalPath.Replace (" ", "\\ "); // Escape space-characters
|
|
||||||
process.Start ();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Button close_button = new Button (Stock.Close);
|
Button close_button = new Button (Stock.Close);
|
||||||
|
|
Loading…
Reference in a new issue