Genre filter dialog: fix initial visibility of the clear button
[cinaest] / src / genre-filter-dialog.vala
index b5c8aef..08bb5ce 100644 (file)
@@ -87,6 +87,10 @@ class GenreFilterDialog : Gtk.Dialog {
                }
 
                show_all ();
+               if (genres.field == 0)
+                       button_clear.hide ();
+               else
+                       update_title ();
 
                do {
                        res = base.run ();