From 8807f06fd629f00bbe5d248af73533319df107f0 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Fri, 1 Jan 2016 11:51:01 -0500 Subject: [PATCH] gui/collection: Update collection on startup Signed-off-by: Anna Schumaker --- gui/collection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/collection.c b/gui/collection.c index 15714ef9..8d76e89c 100644 --- a/gui/collection.c +++ b/gui/collection.c @@ -145,7 +145,7 @@ static gboolean __collection_on_idle(gpointer data) if (idle_run_task()) { gtk_progress_bar_set_fraction(progress, idle_progress()); - return G_SOURCE_CONTINUE; + return gtk_widget_is_visible(gui_builder_widget("o_window")); } else { gtk_widget_hide(GTK_WIDGET(progress)); return G_SOURCE_REMOVE; @@ -182,6 +182,9 @@ void gui_collection_init() gtk_tree_selection_set_select_function( gtk_tree_view_get_selection(treeview), __collection_select, NULL, NULL); + + collection_update_all(); + gui_collection_idle_enable(); } void gui_collection_idle_enable()