diff options
author | Lucas Chollet <lucas.chollet@free.fr> | 2021-01-16 11:46:48 +0100 |
---|---|---|
committer | Lucas Chollet <lucas.chollet@free.fr> | 2021-07-01 16:57:58 +0000 |
commit | 38a7ea92b76b5e6e5210cbab0478deed80d09985 (patch) | |
tree | 6cade6597684bd03941f74398765ed8aaf31724c | |
parent | 1e3996d1c98ec5767dabde3b1dd1d8635f8d1fe9 (diff) | |
download | nautilus-38a7ea92b76b5e6e5210cbab0478deed80d09985.tar.gz |
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
-rw-r--r-- | src/nautilus-properties-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |