summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelavatar.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-04-16 01:01:01 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-04-16 01:01:01 +0300
commitc9b83e8117026aa7fc70da3972049152a669b0fc (patch)
treeced3d08d70d22b03022e884121056faa13b2a524 /indra/newview/llpanelavatar.cpp
parent3678678506d9d026ebdb88d3775920e6b0b32f8a (diff)
SL-15312 Legacy profiles remake #8
Progress indicators, loading states and 'embedded' cleanup
Diffstat (limited to 'indra/newview/llpanelavatar.cpp')
-rw-r--r--indra/newview/llpanelavatar.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp
index e25eba11d2..fada9cc98b 100644
--- a/indra/newview/llpanelavatar.cpp
+++ b/indra/newview/llpanelavatar.cpp
@@ -69,9 +69,7 @@ static LLDefaultChildRegistry::Register<LLProfileDropTarget> r("profile_drop_tar
LLPanelProfileTab::LLPanelProfileTab()
: LLPanel()
, mAvatarId(LLUUID::null)
-, mLoading(false)
-, mLoaded(false)
-, mEmbedded(false)
+, mLoadingState(PROFILE_INIT)
, mSelfProfile(false)
{
}
@@ -107,11 +105,11 @@ void LLPanelProfileTab::onOpen(const LLSD& key)
setApplyProgress(true);
}
-void LLPanelProfileTab::updateButtons()
+void LLPanelProfileTab::setLoaded()
{
setApplyProgress(false);
- mLoaded = true;
+ mLoadingState = PROFILE_LOADED;
}
void LLPanelProfileTab::setApplyProgress(bool started)
@@ -120,7 +118,7 @@ void LLPanelProfileTab::setApplyProgress(bool started)
if (indicator)
{
- indicator->setVisible(true);
+ indicator->setVisible(started);
if (started)
{