FIRE-29605: Add correct "New Outfit" menu option for the "Outfits" inventory folder and disable disallowed menu items
parent
2251be7f79
commit
72a50ca425
|
|
@ -4381,6 +4381,7 @@ void LLFolderBridge::buildContextMenuOptions(U32 flags, menuentry_vec_t& items
|
|||
const LLUUID &lost_and_found_id = model->findCategoryUUIDForType(LLFolderType::FT_LOST_AND_FOUND);
|
||||
const LLUUID &favorites = model->findCategoryUUIDForType(LLFolderType::FT_FAVORITE);
|
||||
const LLUUID &marketplace_listings_id = model->findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, false);
|
||||
const LLUUID &outfits_id = model->findCategoryUUIDForType(LLFolderType::FT_MY_OUTFITS, false); // <FS:Ansariel> Fix "outfits" context menu
|
||||
|
||||
// <FS:Ansariel> FIRE-11628: Option to delete broken links from AO folder
|
||||
if (mUUID == AOEngine::instance().getAOFolder())
|
||||
|
|
@ -4388,6 +4389,12 @@ void LLFolderBridge::buildContextMenuOptions(U32 flags, menuentry_vec_t& items
|
|||
items.push_back(std::string("Cleanup broken Links"));
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
// <FS:Ansariel> Fix "outfits" context menu
|
||||
if (outfits_id == mUUID)
|
||||
{
|
||||
items.push_back(std::string("New Outfit"));
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
if (lost_and_found_id == mUUID)
|
||||
{
|
||||
// This is the lost+found folder.
|
||||
|
|
@ -4489,7 +4496,10 @@ void LLFolderBridge::buildContextMenuOptions(U32 flags, menuentry_vec_t& items
|
|||
// Not sure what the right thing is to do here.
|
||||
if (!isCOFFolder() && cat && (cat->getPreferredType() != LLFolderType::FT_OUTFIT))
|
||||
{
|
||||
if (!isInboxFolder()) // don't allow creation in inbox
|
||||
// <FS:Ansariel> Fix "outfits" context menu
|
||||
//if (!isInboxFolder()) // don't allow creation in inbox
|
||||
if (!isInboxFolder() && outfits_id != mUUID) // don't allow creation in inbox
|
||||
// </FS:Ansariel>
|
||||
{
|
||||
// Do not allow to create 2-level subfolder in the Calling Card/Friends folder. EXT-694.
|
||||
if (!LLFriendCardsManager::instance().isCategoryInFriendFolder(cat))
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
<menu_item_call label="Papierkorb ausleeren" name="Empty Trash"/>
|
||||
<menu_item_call label="Fundstücke ausleeren" name="Empty Lost And Found"/>
|
||||
<menu_item_call label="Neuer Ordner" name="New Folder"/>
|
||||
<menu_item_call label="Neues Outfit" name="New Outfit"/>
|
||||
<menu_item_call label="Neues Skript" name="New Script"/>
|
||||
<menu_item_call label="Neue Notizkarte" name="New Note"/>
|
||||
<menu_item_call label="Neue Geste" name="New Gesture"/>
|
||||
|
|
|
|||
|
|
@ -151,6 +151,14 @@
|
|||
function="Inventory.DoCreate"
|
||||
parameter="category" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="New Outfit"
|
||||
layout="topleft"
|
||||
name="New Outfit">
|
||||
<menu_item_call.on_click
|
||||
function="Inventory.DoCreate"
|
||||
parameter="outfit" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="New Script"
|
||||
layout="topleft"
|
||||
|
|
|
|||
Loading…
Reference in New Issue