diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2025-08-18 16:21:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-18 16:21:01 +0300 |
commit | a9a2e7c633bbe289b553762741adfe9e4ad94928 (patch) | |
tree | 05304092dc23ec22bc3bb392fecd2601b1042bed | |
parent | 89b8490dedb3f8c41c6027da6af0be4552d81a23 (diff) |
#4557 fix lags in outfit search with many outfits
-rw-r--r-- | indra/newview/lloutfitslist.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp index cb2a6191fa..4e594af432 100644 --- a/indra/newview/lloutfitslist.cpp +++ b/indra/newview/lloutfitslist.cpp @@ -254,7 +254,11 @@ void LLOutfitsList::updateAddedCategory(LLUUID cat_id) // for reliability just fetch it whole, linked items included LLInventoryModelBackgroundFetch::instance().fetchFolderAndLinks(cat_id, [cat_id, list] { - if (list) list->updateList(cat_id); + if (list) + { + list->updateList(cat_id); + list->setForceRefresh(true); + } }); } else @@ -264,6 +268,7 @@ void LLOutfitsList::updateAddedCategory(LLUUID cat_id) // Refresh the list of outfit items after fetch(). // Further list updates will be triggered by the category observer. list->updateList(cat_id); + list->setForceRefresh(true); } // If filter is currently applied we store the initial tab state. @@ -590,7 +595,7 @@ void LLOutfitsList::onFilterSubStringChanged(const std::string& new_string, cons LLWearableItemsList* list = dynamic_cast<LLWearableItemsList*>(tab->getAccordionView()); if (list) { - list->setFilterSubString(new_string, true); + list->setFilterSubString(new_string, tab->getDisplayChildren()); } if (old_string.empty()) |