diff --git a/src/app/commoncomponents/JamiIdentifier.qml b/src/app/commoncomponents/JamiIdentifier.qml index 45498194d454b8687317503499d044d6290733eb..9d797c2ed68ddf5a3901464e7907e1576af4a339 100644 --- a/src/app/commoncomponents/JamiIdentifier.qml +++ b/src/app/commoncomponents/JamiIdentifier.qml @@ -121,10 +121,7 @@ Item { font.pixelSize : text.length > 16 ? JamiTheme.jamiIdSmallFontSize : JamiTheme.bigFontSize property string registeredName: CurrentAccount.registeredName property string infohash: CurrentAccount.uri - text: registeredName ? registeredName : infohash - onRegisteredNameChanged: { - text = registeredName ? registeredName : infohash - } + text: (btnId.clicked && registeredName) ? registeredName : infohash } } } @@ -231,11 +228,9 @@ Item { toolTipText: JamiStrings.identifierURI onClicked: { if (clicked) { - usernameLabel.text = Qt.binding(function() {return CurrentAccount.uri} ); usernameTextEdit.staticText = Qt.binding(function() {return CurrentAccount.uri} ); btnId.toolTipText = JamiStrings.identifierRegisterName; } else { - usernameLabel.text = Qt.binding(function() {return CurrentAccount.registeredName} ); usernameTextEdit.staticText = Qt.binding(function() {return CurrentAccount.registeredName} ); btnId.toolTipText = JamiStrings.identifierURI; }