mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-14 11:52:29 +00:00
Delay populating recent info until dash is shown
This commit is contained in:
parent
67e5877849
commit
f490f980a4
|
@ -249,6 +249,13 @@ class DashView : Gtk.Grid, GitgExt.UIElement, GitgExt.Activity, GitgExt.Selectab
|
|||
// Translators: the two %s will be used to create a link to the author dialog.
|
||||
d_label_profile.label = _("In the mean time, you may want to %sset up your git profile%s.").printf("<a href=\"setup-profile\">", "</a>");
|
||||
update_setup_profile_visibility();
|
||||
|
||||
var whenMapped = new Gitg.WhenMapped(this);
|
||||
|
||||
whenMapped.update(() => {
|
||||
d_repository_list_box.populate_recent();
|
||||
whenMapped = null;
|
||||
});
|
||||
}
|
||||
|
||||
private void update_setup_profile_visibility()
|
||||
|
|
|
@ -317,13 +317,6 @@ namespace Gitg
|
|||
show();
|
||||
|
||||
set_selection_mode(Gtk.SelectionMode.NONE);
|
||||
|
||||
var whenMapped = new Gitg.WhenMapped(this);
|
||||
|
||||
whenMapped.update(() => {
|
||||
add_recent_info();
|
||||
whenMapped = null;
|
||||
});
|
||||
}
|
||||
|
||||
private void update_header(Gtk.ListBoxRow row, Gtk.ListBoxRow? before)
|
||||
|
@ -341,6 +334,11 @@ namespace Gitg
|
|||
return - ((Row)a).time.compare(((Row)b).time);
|
||||
}
|
||||
|
||||
public void populate_recent()
|
||||
{
|
||||
add_recent_info();
|
||||
}
|
||||
|
||||
private void add_recent_info()
|
||||
{
|
||||
var recent_manager = Gtk.RecentManager.get_default();
|
||||
|
|
Loading…
Reference in a new issue