ytk: do not show filter combo box in filechooser if there is only 1 filter

This commit is contained in:
Paul Davis 2024-07-22 15:36:45 -06:00
parent bb8f6a3d66
commit 181ba4db54

View file

@ -7744,7 +7744,7 @@ static void
show_filters (GtkFileChooserDefault *impl, show_filters (GtkFileChooserDefault *impl,
gboolean show) gboolean show)
{ {
if (show) if (show && impl->filters && g_slist_length (impl->filters) > 1)
gtk_widget_show (impl->filter_combo_hbox); gtk_widget_show (impl->filter_combo_hbox);
else else
gtk_widget_hide (impl->filter_combo_hbox); gtk_widget_hide (impl->filter_combo_hbox);