[intro] Fix bug 626095 where two statusicons appear

This commit is contained in:
Hylke Bons 2010-08-05 22:52:43 +01:00
parent 719893183f
commit bbe54ba273

View file

@ -558,6 +558,7 @@ namespace SparkleShare {
Button finish_button = new Button (_("Finish"));
finish_button.Clicked += delegate (object o, EventArgs args) {
if(SparkleShare.SparkleUI != null)
SparkleShare.SparkleUI.UpdateRepositories ();
@ -729,8 +730,12 @@ namespace SparkleShare {
Button finish_button = new Button (_("Finish"));
finish_button.Clicked += delegate (object o, EventArgs args) {
SparkleUI.NotificationIcon = new SparkleStatusIcon ();
if (SparkleUI.NotificationIcon == null)
SparkleUI.NotificationIcon = new SparkleStatusIcon ();
Destroy ();
};
controls.Add (finish_button);