gui/collection: Update collection on startup
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
2cae2cd525
commit
8807f06fd6
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue