Added avatar placeholder

icon-l-profile.svg being used if no avatar image can be loaded
This commit is contained in:
molan-git 2020-04-29 15:30:47 +02:00 committed by GitHub
parent c1372109a7
commit fac72217e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,12 @@ Item {
asynchronous: true
width: description === "" ? Theme.iconSizeMedium : Theme.iconSizeLarge
height: width
source: image
source:
if (icon.status === Image.Error)
source = "../../images/icon-l-profile.svg?" + (pressed
? Theme.highlightColor
: Theme.primaryColor)
else image
}
Column {
anchors {