mac: Fix NullReferenceException on start
This commit is contained in:
parent
55a4fde485
commit
052fe42f92
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -69,6 +69,8 @@ namespace SparkleShare {
|
|||
if (Program.Controller.FirstRun) {
|
||||
Setup = new SparkleSetup ();
|
||||
Setup.Controller.ShowSetupPage ();
|
||||
|
||||
UpdateDockIconVisibility ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue