event log: remove webbrowser and reset combobox selection after closing window

This commit is contained in:
Hylke Bons 2012-03-11 21:35:18 +00:00
parent e74d542010
commit 76ee5407f2
4 changed files with 13 additions and 1 deletions

View file

@ -118,6 +118,9 @@ namespace SparkleShare {
Controller.HideWindowEvent += delegate {
Application.Invoke (delegate {
HideAll ();
if (this.content_wrapper.Child != null)
this.content_wrapper.Remove (this.content_wrapper.Child);
});
};

View file

@ -163,6 +163,9 @@ namespace SparkleShare {
{
InvokeOnMainThread (delegate {
PerformClose (this);
if (this.web_view.Superview == ContentView)
this.web_view.RemoveFromSuperview ();
});
}
};

View file

@ -167,7 +167,8 @@ namespace SparkleShare {
Program.Controller.OnIdle += delegate {
if (UpdateContentEvent != null)
UpdateContentEvent (HTML);
// TODO: Check selected folder
if (UpdateSizeInfoEvent != null)
UpdateSizeInfoEvent (Size, HistorySize);
};
@ -192,6 +193,8 @@ namespace SparkleShare {
{
if (HideWindowEvent != null)
HideWindowEvent ();
this.selected_folder = null;
}

View file

@ -152,6 +152,9 @@ namespace SparkleShare {
Controller.HideWindowEvent += delegate {
Dispatcher.Invoke ((Action) delegate {
Hide ();
if (this.canvas.Children.Contains (this.web_browser))
this.canvas.Children.Remove (this.web_browser);
});
};