SL-19108 Fix folders not showing thumbnails

meow-7.2.2
Andrey Kleshchev 2023-03-17 14:51:06 +02:00
parent 3a5c41a20e
commit 9ef9efaa0e
2 changed files with 11 additions and 0 deletions

View File

@ -2339,6 +2339,16 @@ LLFontGL::StyleFlags LLFolderBridge::getLabelStyle() const
return LLFontGL::NORMAL;
}
const LLUUID& LLFolderBridge::getThumbnailUUID() const
{
LLViewerInventoryCategory* cat = getCategory();
if (cat)
{
return cat->getThumbnailUUID();
}
return LLUUID::null;
}
void LLFolderBridge::update()
{
// we know we have children but haven't fetched them (doesn't obey filter)

View File

@ -299,6 +299,7 @@ public:
static LLUIImagePtr getIcon(LLFolderType::EType preferred_type);
virtual std::string getLabelSuffix() const;
virtual LLFontGL::StyleFlags getLabelStyle() const;
virtual const LLUUID& getThumbnailUUID() const;
void setShowDescendantsCount(bool show_count) {mShowDescendantsCount = show_count;}