Fix empty display/user name
If no display_name is profided, use username (without @instance)
This commit is contained in:
parent
ac26d6772b
commit
ba39f51a5e
1 changed files with 5 additions and 1 deletions
|
@ -12,7 +12,11 @@ Item {
|
|||
left: parent.left
|
||||
leftMargin: Theme.paddingMedium
|
||||
}
|
||||
text: account_display_name
|
||||
text:
|
||||
if (account_display_name === "") {
|
||||
account_username.split('@')[0]
|
||||
}
|
||||
else account_display_name
|
||||
width: contentWidth > parent.width /2 ? parent.width /2 : contentWidth
|
||||
truncationMode: TruncationMode.Fade
|
||||
font.weight: Font.Bold
|
||||
|
|
Loading…
Reference in a new issue