From 181ba4db54142da65e5b500ff8763b788d109f3a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 22 Jul 2024 15:36:45 -0600 Subject: [PATCH] ytk: do not show filter combo box in filechooser if there is only 1 filter --- libs/tk/ytk/gtkfilechooserdefault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/tk/ytk/gtkfilechooserdefault.c b/libs/tk/ytk/gtkfilechooserdefault.c index cf86b6ab86..ce9802cf62 100644 --- a/libs/tk/ytk/gtkfilechooserdefault.c +++ b/libs/tk/ytk/gtkfilechooserdefault.c @@ -7744,7 +7744,7 @@ static void show_filters (GtkFileChooserDefault *impl, gboolean show) { - if (show) + if (show && impl->filters && g_slist_length (impl->filters) > 1) gtk_widget_show (impl->filter_combo_hbox); else gtk_widget_hide (impl->filter_combo_hbox);