diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2023-12-18 22:02:14 +0200 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2023-12-18 22:02:14 +0200 |
commit | 7838c14d871529b39e0fdf63088ac7640478605c (patch) | |
tree | a4db120e5abba5ad9b1981b12870159d56b8eed8 /indra/newview/llpanelavatar.cpp | |
parent | c87850ddab5604e57fdcebad6a53616232a1b648 (diff) |
SL-18058 Post-merge functionality restore
Diffstat (limited to 'indra/newview/llpanelavatar.cpp')
-rw-r--r-- | indra/newview/llpanelavatar.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp index ad8ed7c144..3f2dc5a415 100644 --- a/indra/newview/llpanelavatar.cpp +++ b/indra/newview/llpanelavatar.cpp @@ -127,7 +127,7 @@ void LLPanelProfileTab::setApplyProgress(bool started) } } -static void put_avatar_properties_coro(std::string cap_url, LLUUID agent_id, LLSD data) +static void put_avatar_properties_coro(std::string cap_url, LLUUID agent_id, LLSD data, std::function<void(bool)> callback) { LLCore::HttpRequest::policy_t httpPolicy(LLCore::HttpRequest::DEFAULT_POLICY_ID); LLCoreHttpUtil::HttpCoroutineAdapter::ptr_t @@ -148,13 +148,19 @@ static void put_avatar_properties_coro(std::string cap_url, LLUUID agent_id, LLS if (!status) { LL_WARNS("AvatarProperties") << "Failed to put agent information " << data << " for id " << agent_id << LL_ENDL; - return; + } + else + { + LL_DEBUGS("AvatarProperties") << "Agent id: " << agent_id << " Data: " << data << " Result: " << httpResults << LL_ENDL; } - LL_DEBUGS("AvatarProperties") << "Agent id: " << agent_id << " Data: " << data << " Result: " << httpResults << LL_ENDL; + if (callback) + { + callback(status); + } } -bool LLPanelProfileTab::saveAgentUserInfoCoro(std::string name, LLSD value) const +bool LLPanelProfileTab::saveAgentUserInfoCoro(std::string name, LLSD value, std::function<void(bool)> callback) const { std::string cap_url = gAgent.getRegionCapability("AgentProfile"); if (cap_url.empty()) @@ -164,7 +170,7 @@ bool LLPanelProfileTab::saveAgentUserInfoCoro(std::string name, LLSD value) cons } LLCoros::instance().launch("putAgentUserInfoCoro", - boost::bind(put_avatar_properties_coro, cap_url, getAvatarId(), LLSD().with(name, value))); + boost::bind(put_avatar_properties_coro, cap_url, getAvatarId(), LLSD().with(name, value), callback)); return true; } |