diff options
| author | xiphon <xiphon@protonmail.com> | 2020-02-15 12:50:51 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-02-15 15:57:38 +0000 |
| commit | fbfc5310d592a4ccbf0132ab2133fe045cb25ab8 (patch) | |
| tree | 6d1f586c7bab4fd9894aa4116b3eb4b42d7f9299 /pages | |
| parent | eb7fae92ef0ed01a1d17e56fac217c6450716ccc (diff) | |
| download | monzero-gui-fbfc5310d592a4ccbf0132ab2133fe045cb25ab8.tar.gz monzero-gui-fbfc5310d592a4ccbf0132ab2133fe045cb25ab8.tar.xz monzero-gui-fbfc5310d592a4ccbf0132ab2133fe045cb25ab8.zip | |
History: display Address Book names for known destination addresses
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/History.qml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pages/History.qml b/pages/History.qml index a8ae4c53..82d4abfb 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -633,7 +633,17 @@ Rectangle { MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 - text: isout ? qsTr("Sent") : qsTr("Received") + translationManager.emptyString + text: { + if (!isout) { + return qsTr("Received") + translationManager.emptyString; + } + const addressBookName = currentWallet ? currentWallet.addressBook.getDescription(address) : null; + if (!addressBookName) + { + return qsTr("Sent") + translationManager.emptyString; + } + return addressBookName; + } color: MoneroComponents.Style.historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor |
