1
0

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.
This commit is contained in:
Benoit Verret
2021-04-17 22:53:45 -04:00
parent 7c3f1d9e65
commit 2cc16f8ed4

View File

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