Don't cache if we already have it

This commit is contained in:
Lirusaito
2019-03-04 17:00:08 -05:00
parent e1c3585b46
commit 5f487f4ce1

View File

@@ -164,7 +164,8 @@ void LLInventoryPanel::buildFolderView()
// Determine the root folder in case specified, and
// build the views starting with that folder.
LLUUID root_id = getRootFolderID();
mStartFolder["id"] = root_id; // Cache this, so we don't waste time on future getRootFolderID calls
if (!mStartFolder.has("id"))
mStartFolder["id"] = root_id; // Cache this, so we don't waste time on future getRootFolderID calls
LLInvFVBridge* new_listener = mInvFVBridgeBuilder->createBridge(LLAssetType::AT_CATEGORY,
(mUseMarketplaceFolders/*mParams.use_marketplace_folders*/ ? LLAssetType::AT_MARKETPLACE_FOLDER : LLAssetType::AT_CATEGORY),