fix: Removed duplicated text in Token Popup

Made sure Token List title is only appended if sourceName does not already ends with such string
This commit is contained in:
Seitseman 2024-04-15 15:43:53 +03:00
parent 8be1453fd0
commit 5aa9b4a69a
1 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@ StatusDialog {
readonly property int symbolColumnWidth: 90
readonly property int addressColumnWidth: 106
readonly property int externalLinkBtnWidth: 32
readonly property string tokenListTemplate: qsTr("Token List")
}
width: 521 // by design
@ -65,7 +66,9 @@ StatusDialog {
}
header: StatusDialogHeader {
headline.title: qsTr("%1 Token List").arg(root.sourceName)
headline.title: "%1 %2".arg(root.sourceName)
.arg(root.sourceName && root.sourceName.endsWith(d.tokenListTemplate) ? "" : d.tokenListTemplate)
headline.subtitle: qsTr("%n token(s)", "", root.tokensCount)
actions.closeButton.onClicked: root.close()
leftComponent: StatusSmartIdenticon {