summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-06-30 15:13:12 +0200
committerraveit65 <[email protected]>2022-07-21 17:39:51 +0200
commit48c9abdf973f1c36e6753698f78715097a31c470 (patch)
treef2d27a833c0cb9a600a8e3687bca0c959a397bd8
parent737b30dd506be9c3c5a903dbfadce58eebcb8d8a (diff)
downloadcaja-48c9abdf973f1c36e6753698f78715097a31c470.tar.bz2
caja-48c9abdf973f1c36e6753698f78715097a31c470.tar.xz
fm-properties-window: Do not display Modified field for mounted points
-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 6fc23b76..b2e74b02 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