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
parent 5a613e05
......@@ -162,6 +162,8 @@ class BaseView(Gtk.Stack):
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):
......@@ -297,7 +297,8 @@ class Window(Gtk.ApplicationWindow):
for i in self.views:
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