Browse Source

Avoid hiding QR codes with help_text

In some situations, if a QR code's data and help_text were too long,
the QR code was unscannable.
patch-4
Benoit Verret 4 years ago
parent
commit
2cc16f8ed4
No known key found for this signature in database GPG Key ID: 54D95F51ED0FD5AF
  1. 1
      electrum/gui/qt/qrcodewidget.py

1
electrum/gui/qt/qrcodewidget.py

@ -118,6 +118,7 @@ class QRDialog(WindowModalDialog):
help_text = data if show_text else help_text
if help_text:
qr_hbox.setContentsMargins(0, 0, 0, 44)
text_label = WWLabel()
text_label.setText(help_text)
vbox.addWidget(text_label)

Loading…
Cancel
Save