mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
tx window can show amount even if we are not synchronized
This commit is contained in:
parent
c05c49a18f
commit
c934c5d55c
1 changed files with 0 additions and 6 deletions
|
@ -208,9 +208,6 @@ class TxDialog(QDialog, MessageBoxMixin):
|
||||||
self.date_label.show()
|
self.date_label.show()
|
||||||
else:
|
else:
|
||||||
self.date_label.hide()
|
self.date_label.hide()
|
||||||
# if we are not synchronized, we cannot tell
|
|
||||||
if not self.wallet.up_to_date:
|
|
||||||
return
|
|
||||||
if amount is None:
|
if amount is None:
|
||||||
amount_str = _("Transaction unrelated to your wallet")
|
amount_str = _("Transaction unrelated to your wallet")
|
||||||
elif amount > 0:
|
elif amount > 0:
|
||||||
|
@ -222,14 +219,11 @@ class TxDialog(QDialog, MessageBoxMixin):
|
||||||
self.fee_label.setText(fee_str)
|
self.fee_label.setText(fee_str)
|
||||||
run_hook('transaction_dialog_update', self)
|
run_hook('transaction_dialog_update', self)
|
||||||
|
|
||||||
|
|
||||||
def add_io(self, vbox):
|
def add_io(self, vbox):
|
||||||
|
|
||||||
if self.tx.locktime > 0:
|
if self.tx.locktime > 0:
|
||||||
vbox.addWidget(QLabel("LockTime: %d\n" % self.tx.locktime))
|
vbox.addWidget(QLabel("LockTime: %d\n" % self.tx.locktime))
|
||||||
|
|
||||||
vbox.addWidget(QLabel(_("Inputs") + ' (%d)'%len(self.tx.inputs())))
|
vbox.addWidget(QLabel(_("Inputs") + ' (%d)'%len(self.tx.inputs())))
|
||||||
|
|
||||||
ext = QTextCharFormat()
|
ext = QTextCharFormat()
|
||||||
rec = QTextCharFormat()
|
rec = QTextCharFormat()
|
||||||
rec.setBackground(QBrush(QColor("lightgreen")))
|
rec.setBackground(QBrush(QColor("lightgreen")))
|
||||||
|
|
Loading…
Add table
Reference in a new issue