GUI: fix QR generation for PyPNG backend
This commit is contained in:
@@ -118,7 +118,7 @@ def gen_keypair_psk():
|
||||
def to_png_b64(text):
|
||||
img = qrcode.make(text)
|
||||
buf = io.BytesIO()
|
||||
img.save(buf, format="PNG")
|
||||
img.save(buf)
|
||||
return base64.b64encode(buf.getvalue()).decode("ascii")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user