qml: incoming flag not always correct for determining debit/credit. Use 'value' instead
This commit is contained in:
@@ -84,7 +84,7 @@ Item {
|
|||||||
font.pixelSize: constants.fontSizeMedium
|
font.pixelSize: constants.fontSizeMedium
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: model.incoming ? constants.colorCredit : constants.colorDebit
|
color: model.value.satsInt >= 0 ? constants.colorCredit : constants.colorDebit
|
||||||
|
|
||||||
function updateText() {
|
function updateText() {
|
||||||
text = Config.formatSats(model.value)
|
text = Config.formatSats(model.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user