Commit 17d77727 authored by Marinus Schraal's avatar Marinus Schraal

window: Make sure to populate views

With the async changes the emit signal is triggered too early it seems
and the views aren't populated. Instead populate them like the albums
view.
parent 5a613e05
......@@ -162,6 +162,8 @@ class BaseView(Gtk.Stack):
@log
def _on_grilo_ready(self, data=None):
# FIXME: with async changes in Window this seems never to be
# called anymore. Fix it proper or remove.
if (self.header_bar.get_stack().get_visible_child() == self and not self._init):
self._populate()
self.header_bar.get_stack().connect('notify::visible-child',
......
......@@ -297,7 +297,8 @@ class Window(Gtk.ApplicationWindow):
self.toolbar.searchbar.show()
self.toolbar.dropdown.show()
self.views[0].populate()
for i in self.views:
GLib.idle_add(i.populate)
@log
def _on_select_all(self, action, param):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment