Commit 13571354 authored by Jean Felder's avatar Jean Felder
Browse files

window: Fix album view selection by the stack switcher on launch

The first view added to the stack is the EmptyView which is not
visible on launch. Then, AlbumsView is added and becomes the
visible_child by default because it is visible. However, it is not
selected by the the stack switcher because the
"notify::visible-changed" signal is received before the child is added
to the stack switcher.

This issue is fixed by adding a "visible-child" notification. This
way, the stack switcher selected the AlbumView on launch.
parent 6f2d6b60
Pipeline #269565 passed with stages
in 12 minutes and 11 seconds
......@@ -262,7 +262,10 @@ class Window(Gtk.ApplicationWindow):
# The "visible-child" notification ensures that the AlbumView
# appears as selected by the stack switcher on launch.
self._stack.props.visible_child = self.views[View.ALBUM]
"search-state", self._search, "state",
Supports Markdown
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