mac: Fix NullReferenceException on start

This commit is contained in:
Hylke Bons 2012-01-22 20:21:10 +00:00
parent 55a4fde485
commit 052fe42f92
2 changed files with 8 additions and 2 deletions

View file

@ -87,7 +87,9 @@ namespace SparkleShare {
MakeKeyAndOrderFront (this);
OrderFrontRegardless ();
Program.UI.UpdateDockIconVisibility ();
if (Program.UI != null)
Program.UI.UpdateDockIconVisibility ();
}
@ -146,7 +148,9 @@ namespace SparkleShare {
{
base.OrderOut (this);
NSApplication.SharedApplication.RemoveWindowsItem (this);
Program.UI.UpdateDockIconVisibility ();
if (Program.UI != null)
Program.UI.UpdateDockIconVisibility ();
return;
}

View file

@ -69,6 +69,8 @@ namespace SparkleShare {
if (Program.Controller.FirstRun) {
Setup = new SparkleSetup ();
Setup.Controller.ShowSetupPage ();
UpdateDockIconVisibility ();
}
}
}