[VMM] Added Feature "Copy Listing ID"
Take it from me, LGPL or whatever, I don't care, this is QoL
This commit is contained in:
@@ -1031,6 +1031,7 @@ void LLInvFVBridge::addMarketplaceContextMenuOptions(U32 flags,
|
||||
{
|
||||
disabled_items.push_back(std::string("Marketplace Create Listing"));
|
||||
disabled_items.push_back(std::string("Marketplace Associate Listing"));
|
||||
items.push_back(std::string("Marketplace Copy ID"));
|
||||
if (LLMarketplaceData::instance().getVersionFolder(mUUID).isNull())
|
||||
{
|
||||
disabled_items.push_back(std::string("Marketplace List"));
|
||||
@@ -3131,6 +3132,11 @@ void LLFolderBridge::performAction(LLInventoryModel* model, std::string action)
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if ("marketplace_copy_id")
|
||||
{
|
||||
auto id = LLMarketplaceData::instance().getListingID(mUUID);
|
||||
gViewerWindow->getWindow()->copyTextToClipboard(utf8str_to_wstring(std::to_string(id)));
|
||||
}
|
||||
// <singu> Move displaced inventory to lost and found
|
||||
else if ("move_to_lost_and_found" == action)
|
||||
{
|
||||
|
||||
@@ -46,6 +46,9 @@
|
||||
name="Marketplace Deactivate">
|
||||
<on_click function="Inventory.DoToSelected" userdata="marketplace_deactivate"/>
|
||||
</menu_item_call>
|
||||
<menu_item_call label="Copy Listing ID" name="Marketplace Copy ID">
|
||||
<on_click function="Inventory.DoToSelected" userdata="marketplace_copy_id"/>
|
||||
</menu_item_call>
|
||||
<menu_item_separator name="Marketplace Listings Separator"/>
|
||||
<menu_item_call bottom_delta="-18" height="18" label="Buy" left="0" mouse_opaque="true"
|
||||
name="Task Buy" width="128">
|
||||
|
||||
Reference in New Issue
Block a user