mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
Merge pull request #246108 from gp2112/fix/onionshare-gui
onionshare-gui: add patch to fix qrcode
This commit is contained in:
commit
1b1a0d25bb
@ -124,6 +124,7 @@ rec {
|
||||
inherit tor meek obfs4 snowflake;
|
||||
inherit (tor) geoip;
|
||||
})
|
||||
./fix-qrcode-gui.patch
|
||||
];
|
||||
|
||||
disable = !isPy3k;
|
||||
|
14
pkgs/applications/networking/onionshare/fix-qrcode-gui.patch
Normal file
14
pkgs/applications/networking/onionshare/fix-qrcode-gui.patch
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user