Skip to content
Snippets Groups Projects
Unverified Commit ece46db4 authored by Maxim Nikolenko's avatar Maxim Nikolenko Committed by GitHub
Browse files

SL-20380 show group notice button only if user is a member of the group (#465)

parent b83b4e08
No related branches found
No related tags found
No related merge requests found
...@@ -475,14 +475,17 @@ void LLGroupListItem::onMouseEnter(S32 x, S32 y, MASK mask) ...@@ -475,14 +475,17 @@ void LLGroupListItem::onMouseEnter(S32 x, S32 y, MASK mask)
{ {
mInfoBtn->setVisible(true); mInfoBtn->setVisible(true);
mProfileBtn->setVisible(true); mProfileBtn->setVisible(true);
mNoticesBtn->setVisible(true); if (mForAgent)
if (mForAgent && mVisibilityHideBtn)
{ {
LLGroupData agent_gdatap; LLGroupData agent_gdatap;
if (gAgent.getGroupData(mGroupID, agent_gdatap)) if (gAgent.getGroupData(mGroupID, agent_gdatap))
{ {
mVisibilityHideBtn->setVisible(agent_gdatap.mListInProfile); if (mVisibilityHideBtn)
mVisibilityShowBtn->setVisible(!agent_gdatap.mListInProfile); {
mVisibilityHideBtn->setVisible(agent_gdatap.mListInProfile);
mVisibilityShowBtn->setVisible(!agent_gdatap.mListInProfile);
}
mNoticesBtn->setVisible(true);
} }
} }
} }
......
...@@ -64,7 +64,8 @@ ...@@ -64,7 +64,8 @@
follows="right" follows="right"
image_pressed="Group_Notices" image_pressed="Group_Notices"
image_unselected="Group_Notices" image_unselected="Group_Notices"
tab_stop="false"/> tab_stop="false"
visible="false"/>
<button <button
name="visibility_hide_btn" name="visibility_hide_btn"
tool_tip="Hide group on my profile" tool_tip="Hide group on my profile"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment