diff options
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 29c0493b4..f2d704bcb 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -2126,7 +2126,14 @@ video_level_opts_set(signal_user_data_t *ud, const gchar *name) levels = hb_video_encoder_get_levels(encoder); while (levels && levels[count]) count++; - if (count == 0) return; + GtkWidget *w = GHB_WIDGET(ud->builder, "VideoLevel"); + gtk_widget_set_visible(w, count > 0); + w = GHB_WIDGET(ud->builder, "VideoLevelLabel"); + gtk_widget_set_visible(w, count > 0); + if (count <= 0) + { + return; + } g_debug("video_level_opts_set ()\n"); GtkComboBox *combo = GTK_COMBO_BOX(GHB_WIDGET(ud->builder, name)); |