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:
parent
8be1453fd0
commit
5aa9b4a69a
|
@ -31,6 +31,7 @@ StatusDialog {
|
||||||
readonly property int symbolColumnWidth: 90
|
readonly property int symbolColumnWidth: 90
|
||||||
readonly property int addressColumnWidth: 106
|
readonly property int addressColumnWidth: 106
|
||||||
readonly property int externalLinkBtnWidth: 32
|
readonly property int externalLinkBtnWidth: 32
|
||||||
|
readonly property string tokenListTemplate: qsTr("Token List")
|
||||||
}
|
}
|
||||||
|
|
||||||
width: 521 // by design
|
width: 521 // by design
|
||||||
|
@ -65,7 +66,9 @@ StatusDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
header: StatusDialogHeader {
|
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)
|
headline.subtitle: qsTr("%n token(s)", "", root.tokensCount)
|
||||||
actions.closeButton.onClicked: root.close()
|
actions.closeButton.onClicked: root.close()
|
||||||
leftComponent: StatusSmartIdenticon {
|
leftComponent: StatusSmartIdenticon {
|
||||||
|
|
Loading…
Reference in New Issue