Skip to content
Snippets Groups Projects
Commit 53ebcc0f authored by Andrey Lihatskiy's avatar Andrey Lihatskiy
Browse files

SL-18581 Add more logging

parent e1661fdc
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -323,15 +323,18 @@ bool LLToolBarView::loadToolbars(bool force_default) ...@@ -323,15 +323,18 @@ bool LLToolBarView::loadToolbars(bool force_default)
// SL-18581: Don't show the starter avatar toolbar button for NUX users // SL-18581: Don't show the starter avatar toolbar button for NUX users
LLViewerInventoryCategory* my_outfits_cat = gInventory.getCategory(gInventory.findCategoryUUIDForType(LLFolderType::FT_MY_OUTFITS)); LLViewerInventoryCategory* my_outfits_cat = gInventory.getCategory(gInventory.findCategoryUUIDForType(LLFolderType::FT_MY_OUTFITS));
if (gAgent.isFirstLogin() if (gAgent.isFirstLogin())
&& my_outfits_cat != NULL
&& my_outfits_cat->getDescendentCount() > 0)
{ {
for (S32 i = LLToolBarEnums::TOOLBAR_FIRST; i <= LLToolBarEnums::TOOLBAR_LAST; i++) LL_WARNS() << "First login: checking for NUX user." << LL_ENDL;
if (my_outfits_cat != NULL && my_outfits_cat->getDescendentCount() > 0)
{ {
if (mToolbars[i]) LL_WARNS() << "First login: My Outfits folder is not empty, removing the avatar picker button." << LL_ENDL;
for (S32 i = LLToolBarEnums::TOOLBAR_FIRST; i <= LLToolBarEnums::TOOLBAR_LAST; i++)
{ {
mToolbars[i]->removeCommand(LLCommandId("avatar")); if (mToolbars[i])
{
mToolbars[i]->removeCommand(LLCommandId("avatar"));
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment