History: improve human readable time format

This commit is contained in:
selsta 2019-04-19 14:20:26 +02:00
parent 10926644bf
commit 507441f8b6
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -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
}
}
}
}
}