summaryrefslogtreecommitdiff
path: root/indra/llui/llfolderviewitem.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-05-17 20:47:19 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-05-17 20:47:19 +0300
commit4c676acedd3c99234e599b77bcfdec6ad3274efb (patch)
tree7eb7d9fdf399d486712b40776220b8162bb1b88f /indra/llui/llfolderviewitem.cpp
parentf2358a2d4d441dc0c70d0449bc33038a396fba36 (diff)
viewer#1300 More favorite settings
Diffstat (limited to 'indra/llui/llfolderviewitem.cpp')
-rw-r--r--indra/llui/llfolderviewitem.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp
index 0131ab1085..03e3c84ca1 100644
--- a/indra/llui/llfolderviewitem.cpp
+++ b/indra/llui/llfolderviewitem.cpp
@@ -767,17 +767,14 @@ void LLFolderViewItem::drawOpenFolderArrow(const Params& default_params, const L
void LLFolderViewItem::drawFavoriteIcon(const Params& default_params, const LLUIColor& fg_color)
{
static LLUICachedControl<bool> draw_star("InventoryFavoritesUseStar", true);
- if (!draw_star)
- {
- return;
- }
+ static LLUICachedControl<bool> draw_hollow_star("InventoryFavoritesUseHollowStar", true);
LLUIImage* favorite_image = NULL;
- if (mIsFavorite)
+ if (draw_star && mIsFavorite)
{
favorite_image = default_params.favorite_image;
}
- else if (mHasFavorites && !isOpen())
+ else if (draw_hollow_star && mHasFavorites && !isOpen())
{
favorite_image = default_params.favorite_content_image;
}