Add name_system attribute to NameBoxes and NameEditors

Uses the main one by default.
Removes old show complete names on profile setting in favor of
ProfileNameSystem, which is now offered under Adv. Chat->Chat UI

Forces nameui to refresh on name setting update, or should, not important though
This commit is contained in:
Liru Færs
2019-11-23 22:37:50 -05:00
parent fb20751330
commit d9ff42ab3c
18 changed files with 55 additions and 42 deletions

View File

@@ -1236,13 +1236,12 @@ void LLPanelAvatar::setOnlineStatus(EOnlineStatus online_status)
void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id)
{
auto dnname = getChild<LLNameEditor>("dnname");
if (avatar_id != mAvatarID)
{
if (mAvatarID.notNull())
LLAvatarPropertiesProcessor::getInstance()->removeObserver(mAvatarID, this);
mAvatarID = avatar_id;
dnname->setNameID(avatar_id, false);
getChild<LLNameEditor>("dnname")->setNameID(avatar_id, false);
}
if (avatar_id.isNull()) return;
@@ -1271,8 +1270,6 @@ void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id)
if (LLDropTarget* drop_target = findChild<LLDropTarget>("drop_target_rect"))
drop_target->setEntityID(mAvatarID);
dnname->setShowCompleteName(gSavedSettings.getBOOL("SinguCompleteNameProfiles"));
if (auto key_edit = getChildView("avatar_key"))
key_edit->setValue(mAvatarID.asString());