mac log: get rid of 'just leaking' messages
This commit is contained in:
parent
dc162d45f8
commit
9ad2335c99
|
@ -97,7 +97,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
CloseButton.Activated += delegate {
|
CloseButton.Activated += delegate {
|
||||||
InvokeOnMainThread (delegate {
|
InvokeOnMainThread (delegate {
|
||||||
PerformClose (this);
|
PerformClose (this);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -133,13 +133,16 @@ namespace SparkleShare {
|
||||||
public void UpdateEventLog ()
|
public void UpdateEventLog ()
|
||||||
{
|
{
|
||||||
InvokeOnMainThread (delegate {
|
InvokeOnMainThread (delegate {
|
||||||
if (HTML == null)
|
|
||||||
ContentView.AddSubview (ProgressIndicator);
|
if (HTML == null)
|
||||||
|
ContentView.AddSubview (ProgressIndicator);
|
||||||
});
|
});
|
||||||
|
|
||||||
Thread thread = new Thread (new ThreadStart (delegate {
|
Thread thread = new Thread (new ThreadStart (delegate {
|
||||||
GenerateHTML ();
|
using (NSAutoreleasePool pool = new NSAutoreleasePool ()) {
|
||||||
AddHTML ();
|
GenerateHTML ();
|
||||||
|
AddHTML ();
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
thread.Start ();
|
thread.Start ();
|
||||||
|
@ -167,13 +170,14 @@ namespace SparkleShare {
|
||||||
private void AddHTML ()
|
private void AddHTML ()
|
||||||
{
|
{
|
||||||
InvokeOnMainThread (delegate {
|
InvokeOnMainThread (delegate {
|
||||||
if (ProgressIndicator.Superview == ContentView)
|
if (ProgressIndicator.Superview == ContentView)
|
||||||
ProgressIndicator.RemoveFromSuperview ();
|
ProgressIndicator.RemoveFromSuperview ();
|
||||||
|
|
||||||
WebView.MainFrame.LoadHtmlString (HTML, new NSUrl (""));
|
WebView.MainFrame.LoadHtmlString (HTML, new NSUrl (""));
|
||||||
|
|
||||||
ContentView.AddSubview (WebView);
|
ContentView.AddSubview (WebView);
|
||||||
Update ();
|
Update ();
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue