Skip to content

Commit

Permalink
mac: Fix NullReferenceException on start
Browse files Browse the repository at this point in the history
  • Loading branch information
hbons committed Jan 22, 2012
1 parent cac518c commit 2faaba3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SparkleShare/Mac/SparkleSetupWindow.cs
Expand Up @@ -87,7 +87,9 @@ public SparkleSetupWindow () : base ()
MakeKeyAndOrderFront (this);

OrderFrontRegardless ();
Program.UI.UpdateDockIconVisibility ();

if (Program.UI != null)
Program.UI.UpdateDockIconVisibility ();
}


Expand Down Expand Up @@ -146,7 +148,9 @@ public override void PerformClose (NSObject sender)
{
base.OrderOut (this);
NSApplication.SharedApplication.RemoveWindowsItem (this);
Program.UI.UpdateDockIconVisibility ();

if (Program.UI != null)
Program.UI.UpdateDockIconVisibility ();

return;
}
Expand Down
2 changes: 2 additions & 0 deletions SparkleShare/Mac/SparkleUI.cs
Expand Up @@ -69,6 +69,8 @@ public SparkleUI ()
if (Program.Controller.FirstRun) {
Setup = new SparkleSetup ();
Setup.Controller.ShowSetupPage ();

UpdateDockIconVisibility ();
}
}
}
Expand Down

0 comments on commit 2faaba3

Please sign in to comment.