Show outgoing Lightning paymenst with red description

This commit is contained in:
Luke Childs 2019-11-17 15:28:17 +07:00
parent cbd146ad15
commit bcae8ed1ad

View file

@ -201,7 +201,7 @@ class HistoryModel(QAbstractItemModel, Logger):
# and self.parent.wallet.invoices.paid.get(tx_hash):
# return QVariant(read_QIcon("seal"))
elif col in (HistoryColumns.DESCRIPTION, HistoryColumns.AMOUNT) \
and role == Qt.ForegroundRole and not is_lightning and tx_item['value'].value < 0:
and role == Qt.ForegroundRole and tx_item['value'].value < 0:
red_brush = QBrush(QColor("#BC1E1E"))
return QVariant(red_brush)
elif col == HistoryColumns.FIAT_VALUE and role == Qt.ForegroundRole \