Brought back the inventory item count display after loading has completed.
This commit is contained in:
@@ -858,12 +858,15 @@ void LLInventoryView::updateItemcountText()
|
|||||||
{
|
{
|
||||||
std::ostringstream title;
|
std::ostringstream title;
|
||||||
title << "Inventory";
|
title << "Inventory";
|
||||||
if (LLInventoryModelBackgroundFetch::instance().folderFetchActive())
|
if (LLInventoryModelBackgroundFetch::instance().folderFetchActive() || LLInventoryModelBackgroundFetch::instance().isEverythingFetched())
|
||||||
{
|
{
|
||||||
LLLocale locale(LLLocale::USER_LOCALE);
|
LLLocale locale(LLLocale::USER_LOCALE);
|
||||||
std::string item_count_string;
|
std::string item_count_string;
|
||||||
LLResMgr::getInstance()->getIntegerString(item_count_string, gInventory.getItemCount());
|
LLResMgr::getInstance()->getIntegerString(item_count_string, gInventory.getItemCount());
|
||||||
title << " (Fetched " << item_count_string << " items...)";
|
if(LLInventoryModelBackgroundFetch::instance().folderFetchActive())
|
||||||
|
title << " (Fetched " << item_count_string << " items...)";
|
||||||
|
else
|
||||||
|
title << " ("<< item_count_string << " items)";
|
||||||
}
|
}
|
||||||
title << mFilterText;
|
title << mFilterText;
|
||||||
setTitle(title.str());
|
setTitle(title.str());
|
||||||
|
|||||||
Reference in New Issue
Block a user