SL-17624 In profiles 'Remove Photo' remains inactive after uploading a photo

meow-7.2.2
Andrey Kleshchev 2022-06-20 20:16:55 +03:00
parent ababcc700c
commit 750606c7a5
1 changed files with 2 additions and 0 deletions

View File

@ -2141,6 +2141,7 @@ void LLPanelProfileFirstLife::setProfileImageUploading(bool loading)
void LLPanelProfileFirstLife::setProfileImageUploaded(const LLUUID &image_asset_id)
{
mPicture->setValue(image_asset_id);
mImageId = image_asset_id;
setProfileImageUploading(false);
}
@ -2323,6 +2324,7 @@ void LLPanelProfileFirstLife::resetData()
{
mDescriptionEdit->setValue(LLStringUtil::null);
mPicture->setValue("Generic_Person_Large");
mImageId = LLUUID::null;
mUploadPhoto->setVisible(getSelfProfile());
mChangePhoto->setVisible(getSelfProfile());