From 5aa9b4a69a3c99b834ba175c0044950886705db6 Mon Sep 17 00:00:00 2001 From: Seitseman Date: Mon, 15 Apr 2024 15:43:53 +0300 Subject: [PATCH] fix: Removed duplicated text in Token Popup Made sure Token List title is only appended if sourceName does not already ends with such string --- ui/app/AppLayouts/Profile/popups/TokenListPopup.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Profile/popups/TokenListPopup.qml b/ui/app/AppLayouts/Profile/popups/TokenListPopup.qml index b6df9a1f9f..353b3ca50d 100644 --- a/ui/app/AppLayouts/Profile/popups/TokenListPopup.qml +++ b/ui/app/AppLayouts/Profile/popups/TokenListPopup.qml @@ -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 {