mac log: get rid of 'just leaking' messages

This commit is contained in:
Hylke Bons 2011-05-29 13:14:33 +01:00
parent dc162d45f8
commit 9ad2335c99

View file

@ -97,7 +97,7 @@ namespace SparkleShare {
CloseButton.Activated += delegate {
InvokeOnMainThread (delegate {
PerformClose (this);
PerformClose (this);
});
};
@ -133,13 +133,16 @@ namespace SparkleShare {
public void UpdateEventLog ()
{
InvokeOnMainThread (delegate {
if (HTML == null)
ContentView.AddSubview (ProgressIndicator);
if (HTML == null)
ContentView.AddSubview (ProgressIndicator);
});
Thread thread = new Thread (new ThreadStart (delegate {
GenerateHTML ();
AddHTML ();
using (NSAutoreleasePool pool = new NSAutoreleasePool ()) {
GenerateHTML ();
AddHTML ();
}
}));
thread.Start ();
@ -167,13 +170,14 @@ namespace SparkleShare {
private void AddHTML ()
{
InvokeOnMainThread (delegate {
if (ProgressIndicator.Superview == ContentView)
ProgressIndicator.RemoveFromSuperview ();
WebView.MainFrame.LoadHtmlString (HTML, new NSUrl (""));
ContentView.AddSubview (WebView);
Update ();
if (ProgressIndicator.Superview == ContentView)
ProgressIndicator.RemoveFromSuperview ();
WebView.MainFrame.LoadHtmlString (HTML, new NSUrl (""));
ContentView.AddSubview (WebView);
Update ();
});
}
}