summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallerymenu.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-30 13:10:36 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-30 13:10:36 +0300
commit5c55adae47cab93a12793528373f639ea9e8efcf (patch)
treeffc13bb9ee911a2ed2560e008d585363b2059638 /indra/newview/llinventorygallerymenu.cpp
parentd42f2a1887a1bc94a97c08bfe676731672ce53d3 (diff)
SL-19773 add context menu for root folder in single folder mode
Diffstat (limited to 'indra/newview/llinventorygallerymenu.cpp')
-rw-r--r--indra/newview/llinventorygallerymenu.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/llinventorygallerymenu.cpp b/indra/newview/llinventorygallerymenu.cpp
index 8a99b79e2b..6dc749fab6 100644
--- a/indra/newview/llinventorygallerymenu.cpp
+++ b/indra/newview/llinventorygallerymenu.cpp
@@ -544,10 +544,8 @@ void LLInventoryGalleryContextMenu::updateMenuItemsVisibility(LLContextMenu* men
}
items.push_back(std::string("Subfolder Separator"));
- if (!is_system_folder)
+ if (!is_system_folder && !isRootFolder())
{
- if(!isRootFolder())
- {
if(has_children && (folder_type != LLFolderType::FT_OUTFIT))
{
items.push_back(std::string("Ungroup folder items"));
@@ -559,7 +557,7 @@ void LLInventoryGalleryContextMenu::updateMenuItemsVisibility(LLContextMenu* men
disabled_items.push_back(std::string("Delete"));
disabled_items.push_back(std::string("Cut"));
}
- }
+
if(!is_inbox)
{
items.push_back(std::string("Rename"));