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




commit 97223b702f29f7b46790acceabdfb249346771ce
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 f33606cbd..6b48c8340 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]