Fix empty profil title

If no display name is provided, use user account name.
This commit is contained in:
molan-git 2020-05-04 10:07:10 +02:00 committed by GitHub
parent cc3983260f
commit eb14c94dc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,11 @@ Item {
} }
Label { Label {
id: ttl id: ttl
text: title text:
if (title === "") {
description.split('@')[0]
}
else title
height: contentHeight height: contentHeight
color: Theme.primaryColor color: Theme.primaryColor
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge