summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-properties-window.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-06-30 15:13:12 +0200
committerraveit65 <[email protected]>2020-07-10 09:41:24 +0200
commitfa3a1b64747ad21a071ef2d7a10604014c159c94 (patch)
tree0c0a61f7d915694bb4fbe74aa7dae582bd7e0f43 /src/file-manager/fm-properties-window.c
parenta30fe3f0d53e0eb7ddeec3f31583d0ea8d029d9e (diff)
downloadcaja-fa3a1b64747ad21a071ef2d7a10604014c159c94.tar.bz2
caja-fa3a1b64747ad21a071ef2d7a10604014c159c94.tar.xz
fm-properties-window: Do not display Modified field for mounted points
Diffstat (limited to 'src/file-manager/fm-properties-window.c')
-rw-r--r--src/file-manager/fm-properties-window.c11
1 files changed, 10 insertions, 1 deletions
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