From bbe54ba2732d9d509eed4a33313c13a71b0206f9 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 5 Aug 2010 22:52:43 +0100 Subject: [PATCH] [intro] Fix bug 626095 where two statusicons appear --- SparkleShare/SparkleIntro.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleIntro.cs b/SparkleShare/SparkleIntro.cs index c8af1f45..82b60176 100644 --- a/SparkleShare/SparkleIntro.cs +++ b/SparkleShare/SparkleIntro.cs @@ -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);