summaryrefslogtreecommitdiff
path: root/src/caja-view-as-action.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-view-as-action.c')
-rw-r--r--src/caja-view-as-action.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/caja-view-as-action.c b/src/caja-view-as-action.c
index 115dfedd..4c1a7d4b 100644
--- a/src/caja-view-as-action.c
+++ b/src/caja-view-as-action.c
@@ -158,6 +158,11 @@ view_as_changed_callback (CajaWindow *window,
}
gtk_combo_box_set_active (combo_box, selected_index);
+ if (g_list_length (window->details->short_list_viewers) == 1) {
+ gtk_widget_hide(GTK_WIDGET(combo_box));
+ } else {
+ gtk_widget_show(GTK_WIDGET(combo_box));
+ }
}