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,6 +87,8 @@ namespace SparkleShare {
MakeKeyAndOrderFront (this); MakeKeyAndOrderFront (this);
OrderFrontRegardless (); OrderFrontRegardless ();
if (Program.UI != null)
Program.UI.UpdateDockIconVisibility (); Program.UI.UpdateDockIconVisibility ();
} }
@ -146,6 +148,8 @@ namespace SparkleShare {
{ {
base.OrderOut (this); base.OrderOut (this);
NSApplication.SharedApplication.RemoveWindowsItem (this); NSApplication.SharedApplication.RemoveWindowsItem (this);
if (Program.UI != null)
Program.UI.UpdateDockIconVisibility (); Program.UI.UpdateDockIconVisibility ();
return; return;

View file

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