sharing: Set new shared folder visible as soon as it gets added

When adding a Shared Folder row to the listbox, we were not settings
it to visible. Causing it to be hidden until the next time the panel
gets populated.

Fixes #580


(cherry picked from commit 1b81221092)
This commit is contained in:
Felipe Borges 2019-09-12 09:04:57 +00:00 committed by Georges Basile Stavracas Neto
parent f6b665625f
commit 70631e9b23

View file

@ -464,6 +464,7 @@ cc_sharing_panel_add_folder (GtkListBox *box,
row = cc_sharing_panel_new_media_sharing_row (folder, self);
i = g_list_length (rows);
gtk_list_box_insert (GTK_LIST_BOX (self->shared_folders_listbox), row, i - 1);
gtk_widget_set_visible (row, TRUE);
}
cc_list_box_adjust_scrolling (GTK_LIST_BOX (self->shared_folders_listbox));