From 5e472117dfba93013936f678faed8874055f29cd Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 22 Feb 2024 17:40:35 +0000 Subject: [PATCH] gui: more hardcoded bytes vs vbytes strings follow-up a9a8ed2eb490218bb0e10bfe12f15328a6e3139b --- electrum/gui/qt/transaction_dialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/transaction_dialog.py b/electrum/gui/qt/transaction_dialog.py index 8ceeec730..8f1835751 100644 --- a/electrum/gui/qt/transaction_dialog.py +++ b/electrum/gui/qt/transaction_dialog.py @@ -79,7 +79,10 @@ dialogs = [] # Otherwise python randomly garbage collects the dialogs... class TxSizeLabel(QLabel): 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):