event log: remove webbrowser and reset combobox selection after closing window
This commit is contained in:
parent
e74d542010
commit
76ee5407f2
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -163,6 +163,9 @@ namespace SparkleShare {
|
|||
{
|
||||
InvokeOnMainThread (delegate {
|
||||
PerformClose (this);
|
||||
|
||||
if (this.web_view.Superview == ContentView)
|
||||
this.web_view.RemoveFromSuperview ();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -168,6 +168,7 @@ namespace SparkleShare {
|
|||
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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue