#4537 Some links were missing favorite options

master
Andrey Kleshchev 2025-08-15 17:35:45 +03:00 committed by Andrey Kleshchev
parent 37a04baf10
commit 548727ab00
1 changed files with 18 additions and 0 deletions

View File

@ -7805,6 +7805,15 @@ void LLLinkItemBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
{
items.push_back(std::string("Properties"));
addDeleteContextMenuOptions(items, disabled_items);
if (isFavorite())
{
items.push_back(std::string("Remove from Favorites"));
}
else if (isAgentInventory())
{
items.push_back(std::string("Add to Favorites"));
}
}
addLinkReplaceMenuOption(items, disabled_items);
hide_context_entries(menu, items, disabled_items);
@ -8031,6 +8040,15 @@ void LLLinkFolderBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
{
items.push_back(std::string("Find Original"));
addDeleteContextMenuOptions(items, disabled_items);
if (isFavorite())
{
items.push_back(std::string("Remove from Favorites"));
}
else if (isAgentInventory())
{
items.push_back(std::string("Add to Favorites"));
}
}
hide_context_entries(menu, items, disabled_items);
}