[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:
Lirusaito
2019-03-07 14:08:19 -05:00
parent 1e4da55190
commit c6cc69b01b
2 changed files with 9 additions and 0 deletions

View File

@@ -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)
{