From 76beebae685d859d4afbff6db3ae6d7785b204da Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Mon, 9 May 2022 20:53:21 +0300 Subject: SL-15312 Fixed picks tabs being too thin --- indra/newview/llpanelprofile.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'indra/newview/llpanelprofile.cpp') diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index bb6fdc1757..031c1db7e2 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -258,6 +258,10 @@ void request_avatar_properties_coro(std::string cap_url, LLUUID agent_id) { panel_notes->processProperties(&avatar_notes); } + if (panel_sl) + { + panel_sl->processNotesProperties(&avatar_notes); + } } //TODO: changes take two minutes to propagate! @@ -818,6 +822,7 @@ BOOL LLPanelProfileSecondLife::postBuild() mSecondLifePic = getChild("2nd_life_pic"); mSecondLifePicLayout = getChild("image_stack"); mDescriptionEdit = getChild("sl_description_edit"); + mNotesSnippet = getChild("notes_snippet"); mAgentActionMenuButton = getChild("agent_actions_menu"); mSaveDescriptionChanges = getChild("save_description_changes"); mDiscardDescriptionChanges = getChild("discard_description_changes"); @@ -965,6 +970,11 @@ void LLPanelProfileSecondLife::processGroupProperties(const LLAvatarGroups* avat mGroupList->setGroups(mGroups); } +void LLPanelProfileSecondLife::processNotesProperties(LLAvatarNotes* avatar_notes) +{ + mNotesSnippet->setValue(avatar_notes->notes); +} + void LLPanelProfileSecondLife::openGroupProfile() { LLUUID group_id = mGroupList->getSelectedUUID(); @@ -1532,14 +1542,15 @@ void LLPanelProfileSecondLife::onSetDescriptionDirty() void LLPanelProfileSecondLife::onShowInSearchCallback() { - if (mAllowPublish == mShowInSearchCombo->getValue().asBoolean()) + S32 value = mShowInSearchCombo->getValue().asInteger(); + if (mAllowPublish == (bool)value) { return; } std::string cap_url = gAgent.getRegionCapability(PROFILE_PROPERTIES_CAP); if (!cap_url.empty()) { - mAllowPublish = mShowInSearchCombo->getValue().asBoolean(); + mAllowPublish = value; LLSD data; data["allow_publish"] = mAllowPublish; LLCoros::instance().launch("putAgentUserInfoCoro", -- cgit v1.2.3