[nautilus/wip/corey/properties: 31/36] properties: Don't allow changing the icon for root filesystem
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/properties: 31/36] properties: Don't allow changing the icon for root filesystem
- Date: Wed, 31 Aug 2022 23:58:09 +0000 (UTC)
commit 65cff25aa0abeb25aecf9b01bc33b650f2227843
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]