[nautilus/wip/corey/properties: 3/7] properties: Don't allow changing the icon for root filesystem




commit 6de1434f93ab057935aa5fdfa5f778cf7aa53004
Author: Corey Berla <corey berla me>
Date:   Tue Aug 23 09:51:03 2022 -0700

    properties: Don't allow changing the icon for root filesystem

 src/nautilus-properties-window.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index e8b5816ea..67f88ea08 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -2319,7 +2319,8 @@ is_volume_properties (NautilusPropertiesWindow *self)
 static gboolean
 should_show_custom_icon_buttons (NautilusPropertiesWindow *self)
 {
-    if (is_multi_file_window (self) || is_volume_properties (self))
+    if (is_multi_file_window (self) || is_volume_properties (self) ||
+        is_root_directory (get_original_file (self)))
     {
         return FALSE;
     }


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