From 38a7ea92b76b5e6e5210cbab0478deed80d09985 Mon Sep 17 00:00:00 2001 From: Lucas Chollet Date: Sat, 16 Jan 2021 11:46:48 +0100 Subject: nautilus-properties-window.c: Display only Folder The description of a folder in the properties dialog precise the mime-type but it is useless for folders Test if the mime type is not equal to "inode/directory" before adding it to the detailed string. https://gitlab.gnome.org/GNOME/nautilus/-/issues/1737 --- src/nautilus-properties-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c index 8289b6e0b..68fb0276d 100644 --- a/src/nautilus-properties-window.c +++ b/src/nautilus-properties-window.c @@ -1320,7 +1320,7 @@ value_field_update (GtkLabel *label, g_autofree char *mime_type = file_list_get_string_attribute (file_list, "mime_type", inconsistent_string); - if (strcmp (mime_type, inconsistent_string)) + if (strcmp (mime_type, inconsistent_string) && strcmp (mime_type, "inode/directory")) { g_autofree char *tmp = g_steal_pointer (&attribute_value); attribute_value = g_strdup_printf (C_("MIME type description (MIME type)", "%s (%s)"), tmp, mime_type); -- cgit v1.2.1