mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
Qt: fix balance column
This commit is contained in:
parent
4dc74870e1
commit
0869e09275
2 changed files with 1 additions and 3 deletions
|
@ -174,8 +174,7 @@ class HistoryModel(QAbstractItemModel, Logger):
|
|||
(tx_item['bc_value'].value if 'bc_value' in tx_item else 0)\
|
||||
+ (tx_item['ln_value'].value if 'ln_value' in tx_item else 0),
|
||||
HistoryColumns.BALANCE:
|
||||
(tx_item['balance'].value if 'balance' in tx_item else 0)\
|
||||
+ (tx_item['balance_msat']//1000 if 'balance_msat'in tx_item else 0),
|
||||
(tx_item['balance'].value if 'balance' in tx_item else 0),
|
||||
HistoryColumns.FIAT_VALUE:
|
||||
tx_item['fiat_value'].value if 'fiat_value' in tx_item else None,
|
||||
HistoryColumns.FIAT_ACQ_PRICE:
|
||||
|
|
|
@ -741,7 +741,6 @@ class Abstract_Wallet(AddressSynchronizer, ABC):
|
|||
item = transactions[txid]
|
||||
item['label'] = tx_item['label']
|
||||
item['ln_value'] = Satoshis(ln_value)
|
||||
item['ln_balance_msat'] = tx_item['balance_msat']
|
||||
else:
|
||||
tx_item['lightning'] = True
|
||||
tx_item['ln_value'] = Satoshis(ln_value)
|
||||
|
|
Loading…
Add table
Reference in a new issue