From 6ffc7e64d18a2a6e6ce0dd9b274cc0ca0895c6bc Mon Sep 17 00:00:00 2001 From: Beq Date: Mon, 23 Jan 2023 17:11:15 +0000 Subject: [PATCH] [OpenSim] FixUp issues on profiles not updating Profiles were not updating (fixed following suggestion from Ubit - thanks) Added additional code to save 1st life notes back to server. --- indra/newview/llpanelprofile.cpp | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index 3a2f16cc52..57751adbd1 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -3132,10 +3132,19 @@ void LLPanelProfileNotes::onSaveNotesChanges() LLCoros::instance().launch("putAgentUserInfoCoro", boost::bind(put_avatar_properties_coro, cap_url, getAvatarId(), LLSD().with("notes", mCurrentNotes))); } +// Restore UDO profiles +#ifdef OPENSIM + else + { + LLAvatarPropertiesProcessor::getInstance()->sendNotes(getAvatarId(), mCurrentNotes); + } +#else +// else { LL_WARNS("AvatarProperties") << "Failed to update profile data, no cap found" << LL_ENDL; } +#endif // mSaveChanges->setEnabled(FALSE); mDiscardChanges->setEnabled(FALSE); @@ -3250,19 +3259,20 @@ void LLPanelProfile::updateData() // include 'inited' or 'data_provided' state to not rerequest if (!getStarted() && avatar_id.notNull()) { - setIsLoading(); - mPanelSecondlife->setIsLoading(); - mPanelPicks->setIsLoading(); - mPanelFirstlife->setIsLoading(); - mPanelNotes->setIsLoading(); // Restore UDP profiles #ifdef OPENSIM mPanelSecondlife->updateData(); mPanelPicks->updateData(); mPanelFirstlife->updateData(); mPanelNotes->updateData(); -#endif +#else // + setIsLoading(); + mPanelSecondlife->setIsLoading(); + mPanelPicks->setIsLoading(); + mPanelFirstlife->setIsLoading(); + mPanelNotes->setIsLoading(); +#endif // restore udp profiles std::string cap_url = gAgent.getRegionCapability(PROFILE_PROPERTIES_CAP); if (!cap_url.empty()) {