[omemo] Improve QR code
Set error correction level to "L", which reduces the amount of transferred data. Error correction level "L" seems to be sufficient for QR codes scanned from computer screens.
This commit is contained in:
1 parent
f8fa2695c5
commit
d1c33940ba
1 file changed
+2
-3
+2
-3
@@ -188,12 +188,11 @@ class KeyDialog(Gtk.Dialog):
|
||||
|
||||
import qrcode
|
||||
qr = qrcode.QRCode(version=None,
|
||||
error_correction=2,
|
||||
box_size=4,
|
||||
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
||||
box_size=6,
|
||||
border=4)
|
||||
qr.add_data(ver_string)
|
||||
qr.make(fit=True)
|
||||
qr.make()
|
||||
|
||||
fill_color = 'black'
|
||||
back_color = 'white'
|
||||
|
||||
Reference in new issue
Block a user