SL-187 FIXED The experience list is unsorted the first time you open Experiences

master
maxim_productengine 2020-03-12 17:47:51 +02:00
parent 6a9658a650
commit ba3f88c867
2 changed files with 14 additions and 1 deletions

View File

@ -93,9 +93,20 @@ void LLPanelExperiences::setExperienceList( const LLSD& experiences )
item->init(public_key);
mExperiencesList->addItem(item, public_key);
const LLSD& experience_details = LLExperienceCache::instance().get(public_key);
if (experience_details.isUndefined())
{
LLExperienceCache::instance().get(public_key, boost::bind(&LLPanelExperiences::sortExperiencesList, this));
}
}
mExperiencesList->sort();
sortExperiencesList();
}
void LLPanelExperiences::sortExperiencesList()
{
mExperiencesList->sort();
}
void LLPanelExperiences::getExperienceIdsList(std::vector<LLUUID>& result)

View File

@ -60,6 +60,8 @@ public:
void setExperienceList(const LLSD& experiences);
void getExperienceIdsList(std::vector<LLUUID>& result);
void sortExperiencesList();
LLExperienceItem* getSelectedExperienceItem();
void removeExperiences( const LLSD& ids );
void removeExperience( const LLUUID& id);