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 {
|
Controller.HideWindowEvent += delegate {
|
||||||
Application.Invoke (delegate {
|
Application.Invoke (delegate {
|
||||||
HideAll ();
|
HideAll ();
|
||||||
|
|
||||||
|
if (this.content_wrapper.Child != null)
|
||||||
|
this.content_wrapper.Remove (this.content_wrapper.Child);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -163,6 +163,9 @@ namespace SparkleShare {
|
||||||
{
|
{
|
||||||
InvokeOnMainThread (delegate {
|
InvokeOnMainThread (delegate {
|
||||||
PerformClose (this);
|
PerformClose (this);
|
||||||
|
|
||||||
|
if (this.web_view.Superview == ContentView)
|
||||||
|
this.web_view.RemoveFromSuperview ();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -167,7 +167,8 @@ namespace SparkleShare {
|
||||||
Program.Controller.OnIdle += delegate {
|
Program.Controller.OnIdle += delegate {
|
||||||
if (UpdateContentEvent != null)
|
if (UpdateContentEvent != null)
|
||||||
UpdateContentEvent (HTML);
|
UpdateContentEvent (HTML);
|
||||||
|
|
||||||
|
// TODO: Check selected folder
|
||||||
if (UpdateSizeInfoEvent != null)
|
if (UpdateSizeInfoEvent != null)
|
||||||
UpdateSizeInfoEvent (Size, HistorySize);
|
UpdateSizeInfoEvent (Size, HistorySize);
|
||||||
};
|
};
|
||||||
|
@ -192,6 +193,8 @@ namespace SparkleShare {
|
||||||
{
|
{
|
||||||
if (HideWindowEvent != null)
|
if (HideWindowEvent != null)
|
||||||
HideWindowEvent ();
|
HideWindowEvent ();
|
||||||
|
|
||||||
|
this.selected_folder = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -152,6 +152,9 @@ namespace SparkleShare {
|
||||||
Controller.HideWindowEvent += delegate {
|
Controller.HideWindowEvent += delegate {
|
||||||
Dispatcher.Invoke ((Action) delegate {
|
Dispatcher.Invoke ((Action) delegate {
|
||||||
Hide ();
|
Hide ();
|
||||||
|
|
||||||
|
if (this.canvas.Children.Contains (this.web_browser))
|
||||||
|
this.canvas.Children.Remove (this.web_browser);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue