Don't confuse the user by showing loading when refreshing item's experience
Also reorganize some code in that area to be cleaner
This commit is contained in:
@@ -300,8 +300,11 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
|
|||||||
{
|
{
|
||||||
getChildView("LabelItemExperienceTitle")->setVisible(TRUE);
|
getChildView("LabelItemExperienceTitle")->setVisible(TRUE);
|
||||||
LLTextBox* tb = getChild<LLTextBox>("LabelItemExperience");
|
LLTextBox* tb = getChild<LLTextBox>("LabelItemExperience");
|
||||||
tb->setText(getString("loading_experience"));
|
if (tb->getValue().asUUID().isNull())
|
||||||
tb->setVisible(TRUE);
|
{
|
||||||
|
tb->setText(getString("loading_experience"));
|
||||||
|
tb->setVisible(TRUE);
|
||||||
|
}
|
||||||
std::string url = std::string();
|
std::string url = std::string();
|
||||||
if(object && object->getRegion())
|
if(object && object->getRegion())
|
||||||
{
|
{
|
||||||
@@ -592,14 +595,10 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
|
|||||||
|
|
||||||
void LLFloaterProperties::setAssociatedExperience(LLHandle<LLFloaterProperties> hInfo, const LLSD& experience)
|
void LLFloaterProperties::setAssociatedExperience(LLHandle<LLFloaterProperties> hInfo, const LLSD& experience)
|
||||||
{
|
{
|
||||||
LLFloaterProperties* info = hInfo.get();
|
LLFloaterProperties* info = hInfo.get();
|
||||||
if(info)
|
if (info && experience.has(LLExperienceCache::EXPERIENCE_ID))
|
||||||
{
|
{
|
||||||
LLUUID id;
|
auto id = experience[LLExperienceCache::EXPERIENCE_ID].asUUID();
|
||||||
if (experience.has(LLExperienceCache::EXPERIENCE_ID))
|
|
||||||
{
|
|
||||||
id = experience[LLExperienceCache::EXPERIENCE_ID].asUUID();
|
|
||||||
}
|
|
||||||
if (id.notNull())
|
if (id.notNull())
|
||||||
{
|
{
|
||||||
//info->getChild<LLTextBox>("LabelItemExperience")->setText(LLSLURL("experience", id, "profile").getSLURLString();
|
//info->getChild<LLTextBox>("LabelItemExperience")->setText(LLSLURL("experience", id, "profile").getSLURLString();
|
||||||
|
|||||||
Reference in New Issue
Block a user