mac: Fix NullReferenceException on start
This commit is contained in:
parent
55a4fde485
commit
052fe42f92
|
@ -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;
|
||||||
|
|
|
@ -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 ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue