Swap block/unblock buttons in the profile properly

meow-7.2.2
PanteraPolnocy 2022-09-20 00:24:04 +02:00
parent 58abd84c1b
commit f617ae2df7
1 changed files with 6 additions and 1 deletions

View File

@ -1816,7 +1816,12 @@ void LLPanelProfileSecondLife::onCommitMenu(const LLSD& userdata)
}
else if (item_name == "toggle_block_agent")
{
LLAvatarActions::toggleBlock(agent_id);
<FS:PP> Swap block/unblock buttons properly
// LLAvatarActions::toggleBlock(agent_id);
bool is_blocked = LLAvatarActions::toggleBlock(agent_id);
mBlockButton->setVisible(!is_blocked);
mUnblockButton->setVisible(is_blocked);
// </FS:PP>
}
else if (item_name == "copy_user_id")
{