Merge pull request #246108 from gp2112/fix/onionshare-gui

onionshare-gui: add patch to fix qrcode
This commit is contained in:
Nick Cao 2023-07-31 00:21:49 -06:00 committed by GitHub
commit 1b1a0d25bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -124,6 +124,7 @@ rec {
inherit tor meek obfs4 snowflake;
inherit (tor) geoip;
})
./fix-qrcode-gui.patch
];
disable = !isPy3k;

View File

@ -0,0 +1,14 @@
diff --git desktop/onionshare/widgets.py desktop/onionshare/widgets.py
index 64a07703..bca974fb 100644
--- desktop/onionshare/widgets.py
+++ desktop/onionshare/widgets.py
@@ -101,7 +101,7 @@ class Image(qrcode.image.base.BaseImage):
A custom Image class, for use with the QR Code pixmap.
"""
- def __init__(self, border, width, box_size):
+ def __init__(self, border, width, box_size, *args, **kargs):
self.border = border
self.width = width
self.box_size = box_size