Browse Source

gui: more hardcoded bytes vs vbytes strings

follow-up a9a8ed2eb4
master
SomberNight 2 years ago
parent
commit
5e472117df
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/gui/qt/transaction_dialog.py

5
electrum/gui/qt/transaction_dialog.py

@ -79,7 +79,10 @@ dialogs = [] # Otherwise python randomly garbage collects the dialogs...
class TxSizeLabel(QLabel): class TxSizeLabel(QLabel):
def setAmount(self, byte_size): def setAmount(self, byte_size):
self.setText(('x %s bytes =' % byte_size) if byte_size else '') text = ""
if byte_size:
text = f"x {byte_size} {UI_UNIT_NAME_TXSIZE_VBYTES} ="
self.setText(text)
class TxFiatLabel(QLabel): class TxFiatLabel(QLabel):

Loading…
Cancel
Save