Commit e86d4d32 authored by Jean Felder's avatar Jean Felder

albumsview: Prevent a selection-mode trigger on launch

On some setups (mostly flatpak) selection-mode can be triggered on
launch when show_all is called in AlbumsView.
Indeed, if at least one AlbumCover has been loaded before the show_all
call, its check button will become visible. Because of a property
binding, this will change the AlbumCover selection-mode property to
True. This selection-mode change is then propagated up to the Window.

Fix the issue by removing the show_all call and making AlbumsView
visible by default.
parent 0089ca26
......@@ -2,6 +2,7 @@
<requires lib="gtk+" version="3.18"/>
<template class="AlbumsView" parent="GtkStack">
<property name="visible">True</property>
<object class="GtkScrolledWindow" id="_scrolled_window">
<property name="visible">True</property>
......@@ -95,8 +95,6 @@ class AlbumsView(Gtk.Stack):
"changed", self._on_vadjustment_changed)
def _on_vadjustment_changed(self, adjustment):
if self._adjustment_timeout_id is not None:
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