Skip to content
Snippets Groups Projects
Commit 6259214f authored by Eric M. Tulla (BigPapi)'s avatar Eric M. Tulla (BigPapi)
Browse files
parents 9c608d4d 3119c0bd
No related branches found
No related tags found
No related merge requests found
...@@ -432,7 +432,26 @@ void LLInventoryPanel::initializeViews() ...@@ -432,7 +432,26 @@ void LLInventoryPanel::initializeViews()
rebuildViewsFor(mStartFolderID); rebuildViewsFor(mStartFolderID);
mViewsInitialized = true; mViewsInitialized = true;
openStartFolderOrMyInventory(); openStartFolderOrMyInventory();
// Special case for new user login
if (gAgent.isFirstLogin())
{
// Auto open the user's library
LLFolderViewFolder* lib_folder = mFolders->getFolderByID(gInventory.getLibraryRootFolderID());
if (lib_folder)
{
lib_folder->setOpen(TRUE);
}
// Auto close the user's my inventory folder
LLFolderViewFolder* my_inv_folder = mFolders->getFolderByID(gInventory.getRootFolderID());
if (my_inv_folder)
{
my_inv_folder->setOpenArrangeRecursively(FALSE, LLFolderViewFolder::RECURSE_DOWN);
}
}
} }
void LLInventoryPanel::rebuildViewsFor(const LLUUID& id) void LLInventoryPanel::rebuildViewsFor(const LLUUID& id)
......
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