Browse Source

qml: incoming flag not always correct for determining debit/credit. Use 'value' instead

patch-4
Sander van Grieken 2 years ago
parent
commit
80f2bf7c09
  1. 2
      electrum/gui/qml/components/controls/HistoryItemDelegate.qml

2
electrum/gui/qml/components/controls/HistoryItemDelegate.qml

@ -84,7 +84,7 @@ Item {
font.pixelSize: constants.fontSizeMedium
Layout.alignment: Qt.AlignRight
font.bold: true
color: model.incoming ? constants.colorCredit : constants.colorDebit
color: model.value.satsInt >= 0 ? constants.colorCredit : constants.colorDebit
function updateText() {
text = Config.formatSats(model.value)

Loading…
Cancel
Save