summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodelbackgroundfetch.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-19 16:11:21 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-19 16:11:21 +0200
commit72131418aa943b93f61508993d7006b02ebd9c35 (patch)
tree8cbef2ec0b8798bd217fbae436ffb73fda0be950 /indra/newview/llinventorymodelbackgroundfetch.cpp
parent7dad882c2f43b53c1618a4b140bd0b35be6fa106 (diff)
SL-18629 Rebuild brocken link on fetch compeltion.
Diffstat (limited to 'indra/newview/llinventorymodelbackgroundfetch.cpp')
-rw-r--r--indra/newview/llinventorymodelbackgroundfetch.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llinventorymodelbackgroundfetch.cpp b/indra/newview/llinventorymodelbackgroundfetch.cpp
index 6cae035fcf..ea721b3a40 100644
--- a/indra/newview/llinventorymodelbackgroundfetch.cpp
+++ b/indra/newview/llinventorymodelbackgroundfetch.cpp
@@ -347,12 +347,20 @@ void LLInventoryModelBackgroundFetch::setAllFoldersFetched()
mAllFoldersFetched = true;
//LL_INFOS(LOG_INV) << "All folders fetched, validating" << LL_ENDL;
//gInventory.validate();
+
+ // For now only informs about initial fetch being done
+ mAllFoldersFetchedSignal();
}
mFolderFetchActive = false;
mBackgroundFetchActive = false;
LL_INFOS(LOG_INV) << "Inventory background fetch completed" << LL_ENDL;
}
+boost::signals2::connection LLInventoryModelBackgroundFetch::setAllFoldersFetchedCallback(folders_fetched_callback_t cb)
+{
+ return mAllFoldersFetchedSignal.connect(cb);
+}
+
void LLInventoryModelBackgroundFetch::backgroundFetchCB(void *)
{
LLInventoryModelBackgroundFetch::instance().backgroundFetch();
@@ -481,7 +489,7 @@ void LLInventoryModelBackgroundFetch::bulkFetchViaAis(const FetchQueueInfo& fetc
const LLViewerInventoryCategory * cat(gInventory.getCategory(cat_id));
if (cat)
{
- if (!gInventory.isCategoryComplete(cat_id))
+ if (LLViewerInventoryCategory::VERSION_UNKNOWN == cat->getVersion())
{
if (ALEXANDRIA_LINDEN_ID == cat->getOwnerID())
{