windows: Fix event log crash
This commit is contained in:
parent
a8327440fe
commit
a3b5cf2f4d
|
@ -184,10 +184,12 @@ namespace SparkleShare {
|
|||
};
|
||||
|
||||
Controller.ContentLoadingEvent += delegate {
|
||||
this.spinner.Start ();
|
||||
|
||||
if (this.canvas.Children.Contains (this.web_browser))
|
||||
this.canvas.Children.Remove (this.web_browser);
|
||||
Dispatcher.BeginInvoke ((Action) delegate {
|
||||
this.spinner.Start ();
|
||||
|
||||
if (this.canvas.Children.Contains (this.web_browser))
|
||||
this.canvas.Children.Remove (this.web_browser);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue