[nautilus/wip/corey/properties: 5/7] properties: Don't show created and modified times for root




commit 6fc275126995e3a48da38afe1ef82e08c12abbb0
Author: Corey Berla <corey berla me>
Date:   Tue Aug 23 10:22:57 2022 -0700

    properties: Don't show created and modified times for root
    
    It doesn't make sense.

 src/nautilus-properties-window.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index ff6a71be4..cd116dc2c 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -2432,13 +2432,13 @@ should_show_accessed_date (NautilusPropertiesWindow *self)
 static gboolean
 should_show_modified_date (NautilusPropertiesWindow *self)
 {
-    return !is_multi_file_window (self);
+    return !(is_multi_file_window (self) || is_root_directory (get_original_file (self)));
 }
 
 static gboolean
 should_show_created_date (NautilusPropertiesWindow *self)
 {
-    return !is_multi_file_window (self);
+    return !(is_multi_file_window (self) || is_root_directory (get_original_file (self)));
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]