Fix racey startup when we're showing the Intro window
This commit is contained in:
parent
3264b6b880
commit
5224d1abc5
|
@ -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 ();
|
||||
// Destroy ();
|
||||
|
||||
Destroy ();
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
SparkleUI = new SparkleUI (HideUI);
|
||||
|
||||
SparkleUI.Run();
|
||||
}
|
||||
|
||||
// Prints the help output
|
||||
|
|
|
@ -81,14 +81,16 @@ namespace SparkleShare {
|
|||
SparkleIntro intro = new SparkleIntro ();
|
||||
intro.ShowAll ();
|
||||
|
||||
} else {
|
||||
}
|
||||
|
||||
NotificationIcon = new SparkleStatusIcon ();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void Run()
|
||||
{
|
||||
|
||||
// The main loop
|
||||
Gtk.Application.Run ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue