diff options
Diffstat (limited to 'SparkleShare/SparkleEventLogController.cs')
-rwxr-xr-x | SparkleShare/SparkleEventLogController.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/SparkleShare/SparkleEventLogController.cs b/SparkleShare/SparkleEventLogController.cs index ea8a248..f9bb5b1 100755 --- a/SparkleShare/SparkleEventLogController.cs +++ b/SparkleShare/SparkleEventLogController.cs @@ -72,7 +72,7 @@ namespace SparkleShare { // A short delay is less annoying than // a flashing window - int delay = 1000; + int delay = 500; if (watch.ElapsedMilliseconds < delay) Thread.Sleep (delay - (int) watch.ElapsedMilliseconds); @@ -155,6 +155,14 @@ namespace SparkleShare { public SparkleEventLogController () { Program.Controller.ShowEventLogWindowEvent += delegate { + if (this.selected_folder == null) { + if (UpdateChooserEvent != null) + UpdateChooserEvent (Folders); + + if (UpdateContentEvent != null) + UpdateContentEvent (HTML); + } + if (ShowWindowEvent != null) ShowWindowEvent (); }; @@ -199,9 +207,11 @@ namespace SparkleShare { public void LinkClicked (string url) { + url = url.Replace ("%20", " "); + if (url.StartsWith (Path.VolumeSeparatorChar.ToString ()) || url.Substring (1, 1).Equals (":")) { - + Program.Controller.OpenFile (url); } } |