diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2025-09-12 15:54:21 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-12 15:54:21 +0300 | 
| commit | cf3352e6f24630948c38db52b749a103e4d08d77 (patch) | |
| tree | 6ab40851a4e2bd009facc90f877436d669244f97 /indra/newview/llinventorygallerymenu.cpp | |
| parent | 452c8e0ea40da1de684c80b84ffa9ec712f72ed2 (diff) | |
#3957 Add indication to a folder's context menu that it is the default upload location
Diffstat (limited to 'indra/newview/llinventorygallerymenu.cpp')
| -rw-r--r-- | indra/newview/llinventorygallerymenu.cpp | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llinventorygallerymenu.cpp b/indra/newview/llinventorygallerymenu.cpp index 7212c4dedb..e129a1296a 100644 --- a/indra/newview/llinventorygallerymenu.cpp +++ b/indra/newview/llinventorygallerymenu.cpp @@ -110,6 +110,7 @@ LLContextMenu* LLInventoryGalleryContextMenu::createMenu()      registrar.add("Inventory.Share", boost::bind(&LLAvatarActions::shareWithAvatars, uuids, gFloaterView->getParentFloater(mGallery)));      enable_registrar.add("Inventory.CanSetUploadLocation", boost::bind(&LLInventoryGalleryContextMenu::canSetUploadLocation, this, _2)); +    enable_registrar.add("Inventory.FileUploadLocation.Check", boost::bind(&LLInventoryGalleryContextMenu::isUploadLocationSelected, this, _2));      enable_registrar.add("Inventory.EnvironmentEnabled", [](LLUICtrl*, const LLSD&)                           { @@ -489,6 +490,12 @@ void LLInventoryGalleryContextMenu::fileUploadLocation(const LLSD& userdata)      LLInventoryAction::fileUploadLocation(mUUIDs.front(), param);  } +bool LLInventoryGalleryContextMenu::isUploadLocationSelected(const LLSD& userdata) +{ +    const std::string param = userdata.asString(); +    return LLInventoryAction::isFileUploadLocation(mUUIDs.front(), param); +} +  bool LLInventoryGalleryContextMenu::canSetUploadLocation(const LLSD& userdata)  {      if (mUUIDs.size() != 1)  | 
