mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-30 11:43:36 +02:00
UserProfile: clean code for showing username
The comment was incorrect (it check the fingerprint, not the alias) and the condition was duplicated Change-Id: I2b3a21de64797dc90abaaa452645d7b0e6183ac1
This commit is contained in:
parent
a2a6e761a6
commit
1daeb26300
1 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ BaseModalDialog {
|
|||
showPresenceIndicator: false
|
||||
}
|
||||
|
||||
// Visible when user alias is not empty or equals to id.
|
||||
// Visible when user alias is not empty and not equal to id.
|
||||
MaterialLineEdit {
|
||||
id: contactAlias
|
||||
|
||||
|
@ -115,11 +115,11 @@ BaseModalDialog {
|
|||
Layout.alignment: Qt.AlignRight
|
||||
font.pointSize: JamiTheme.textFontSize
|
||||
text: JamiStrings.username
|
||||
visible: registeredNameText ? (registeredNameText === idText ? false : true) : false
|
||||
visible: contactDisplayName.visible
|
||||
color: JamiTheme.faddedFontColor
|
||||
}
|
||||
|
||||
// Visible when user name is not empty or equals to alias.
|
||||
// Visible when user name is not empty or equals to id.
|
||||
MaterialLineEdit {
|
||||
id: contactDisplayName
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue