mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-26 23:13:25 +00:00
Show amount of inputs too.
This commit is contained in:
parent
680c9c888a
commit
f3a7d3f2bf
1 changed files with 5 additions and 1 deletions
|
@ -249,6 +249,9 @@ class TxDialog(QDialog):
|
||||||
return chg if self.wallet.is_change(addr) else rec
|
return chg if self.wallet.is_change(addr) else rec
|
||||||
return ext
|
return ext
|
||||||
|
|
||||||
|
def format_amount(amt):
|
||||||
|
return self.parent.format_amount(amt, whitespaces = True)
|
||||||
|
|
||||||
i_text = QTextEdit()
|
i_text = QTextEdit()
|
||||||
i_text.setFont(QFont(MONOSPACE_FONT))
|
i_text.setFont(QFont(MONOSPACE_FONT))
|
||||||
i_text.setReadOnly(True)
|
i_text.setReadOnly(True)
|
||||||
|
@ -270,6 +273,7 @@ class TxDialog(QDialog):
|
||||||
if addr is None:
|
if addr is None:
|
||||||
addr = _('unknown')
|
addr = _('unknown')
|
||||||
cursor.insertText(addr, text_format(addr))
|
cursor.insertText(addr, text_format(addr))
|
||||||
|
cursor.insertText(format_amount(x['value']), ext)
|
||||||
cursor.insertBlock()
|
cursor.insertBlock()
|
||||||
|
|
||||||
vbox.addWidget(i_text)
|
vbox.addWidget(i_text)
|
||||||
|
@ -283,7 +287,7 @@ class TxDialog(QDialog):
|
||||||
cursor.insertText(addr, text_format(addr))
|
cursor.insertText(addr, text_format(addr))
|
||||||
if v is not None:
|
if v is not None:
|
||||||
cursor.insertText('\t', ext)
|
cursor.insertText('\t', ext)
|
||||||
cursor.insertText(self.parent.format_amount(v, whitespaces = True), ext)
|
cursor.insertText(format_amount(v), ext)
|
||||||
cursor.insertBlock()
|
cursor.insertBlock()
|
||||||
vbox.addWidget(o_text)
|
vbox.addWidget(o_text)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue