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()