1
0

gui: more hardcoded bytes vs vbytes strings

follow-up a9a8ed2eb4
This commit is contained in:
SomberNight
2024-02-22 17:40:35 +00:00
parent d01582d58c
commit 5e472117df

View File

@@ -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):