From 507441f8b6eeec47067e700e402bd1e228ec61ec Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 19 Apr 2019 14:20:26 +0200 Subject: [PATCH] History: improve human readable time format --- pages/History.qml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pages/History.qml b/pages/History.qml index 8acd423d..9e047eba 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -838,8 +838,18 @@ Rectangle { state: "copyable" anchors.fill: parent hoverEnabled: true - onEntered: parent.color = MoneroComponents.Style.orange - onExited: parent.color = MoneroComponents.Style.defaultFontColor + onEntered: { + parent.color = MoneroComponents.Style.orange + if (persistentSettings.historyHumanDates) { + parent.text = date + " " + time; + } + } + onExited: { + parent.color = MoneroComponents.Style.defaultFontColor + if (persistentSettings.historyHumanDates) { + parent.text = dateHuman + } + } } } }