CHUI-400 FIXED Disable "Activate Group" menu item if selected group is the active group
parent
1100a84b38
commit
f609f4cca3
|
|
@ -961,6 +961,12 @@ bool LLIMFloaterContainer::enableContextMenuItem(const LLSD& userdata)
|
|||
uuid_vec_t mUUIDs;
|
||||
getParticipantUUIDs(mUUIDs);
|
||||
|
||||
if(item == std::string("can_activate_group"))
|
||||
{
|
||||
LLUUID selected_group_id = getCurSelectedViewModelItem()->getUUID();
|
||||
return gAgent.getGroupID() != selected_group_id;
|
||||
}
|
||||
|
||||
if(mUUIDs.size() <= 0)
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@
|
|||
layout="topleft"
|
||||
name="activate_group">
|
||||
<on_click function="Group.DoToSelected" parameter="activate_group"/>
|
||||
<on_enable function="Avatar.EnableItem" parameter="can_activate_group" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Leave Group"
|
||||
|
|
|
|||
Loading…
Reference in New Issue