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"));
|
Button finish_button = new Button (_("Finish"));
|
||||||
|
|
||||||
finish_button.Clicked += delegate (object o, EventArgs args) {
|
finish_button.Clicked += delegate (object o, EventArgs args) {
|
||||||
|
if(SparkleShare.SparkleUI != null)
|
||||||
|
SparkleShare.SparkleUI.UpdateRepositories ();
|
||||||
|
|
||||||
SparkleShare.SparkleUI.UpdateRepositories ();
|
Destroy ();
|
||||||
// Destroy ();
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
SparkleUI = new SparkleUI (HideUI);
|
SparkleUI = new SparkleUI (HideUI);
|
||||||
|
SparkleUI.Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prints the help output
|
// Prints the help output
|
||||||
|
|
|
@ -81,13 +81,15 @@ namespace SparkleShare {
|
||||||
SparkleIntro intro = new SparkleIntro ();
|
SparkleIntro intro = new SparkleIntro ();
|
||||||
intro.ShowAll ();
|
intro.ShowAll ();
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
NotificationIcon = new SparkleStatusIcon ();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NotificationIcon = new SparkleStatusIcon ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Run()
|
||||||
|
{
|
||||||
|
|
||||||
// The main loop
|
// The main loop
|
||||||
Gtk.Application.Run ();
|
Gtk.Application.Run ();
|
||||||
|
|
Loading…
Reference in a new issue