From fa3a1b64747ad21a071ef2d7a10604014c159c94 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 30 Jun 2020 15:13:12 +0200 Subject: fm-properties-window: Do not display Modified field for mounted points --- src/file-manager/fm-properties-window.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/file-manager') diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index 576fd107..a583b073 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -2664,7 +2664,16 @@ should_show_accessed_date (FMPropertiesWindow *window) static gboolean should_show_modified_date (FMPropertiesWindow *window) { - return !is_multi_file_window (window); + CajaFile *file; + + if (is_multi_file_window (window)) + return FALSE; + + file = get_original_file (window); + if ((file != NULL) && caja_file_can_unmount (file)) + return FALSE; + + return TRUE; } static gboolean -- cgit v1.2.1