Fix racey startup when we're showing the Intro window

This commit is contained in:
Alex Hudson 2010-08-02 17:05:22 +01:00
parent 3264b6b880
commit 5224d1abc5
3 changed files with 10 additions and 7 deletions

View file

@ -555,9 +555,10 @@ namespace SparkleShare {
Button finish_button = new Button (_("Finish"));
finish_button.Clicked += delegate (object o, EventArgs args) {
if(SparkleShare.SparkleUI != null)
SparkleShare.SparkleUI.UpdateRepositories ();
SparkleShare.SparkleUI.UpdateRepositories ();
// Destroy ();
Destroy ();
};

View file

@ -73,7 +73,7 @@ namespace SparkleShare {
}
SparkleUI = new SparkleUI (HideUI);
SparkleUI.Run();
}
// Prints the help output

View file

@ -81,13 +81,15 @@ namespace SparkleShare {
SparkleIntro intro = new SparkleIntro ();
intro.ShowAll ();
} else {
NotificationIcon = new SparkleStatusIcon ();
}
NotificationIcon = new SparkleStatusIcon ();
}
}
public void Run()
{
// The main loop
Gtk.Application.Run ();