mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-30 19:53:33 +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
|
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 {
|
MaterialLineEdit {
|
||||||
id: contactAlias
|
id: contactAlias
|
||||||
|
|
||||||
|
@ -115,11 +115,11 @@ BaseModalDialog {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
font.pointSize: JamiTheme.textFontSize
|
font.pointSize: JamiTheme.textFontSize
|
||||||
text: JamiStrings.username
|
text: JamiStrings.username
|
||||||
visible: registeredNameText ? (registeredNameText === idText ? false : true) : false
|
visible: contactDisplayName.visible
|
||||||
color: JamiTheme.faddedFontColor
|
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 {
|
MaterialLineEdit {
|
||||||
id: contactDisplayName
|
id: contactDisplayName
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue