mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 20:35:13 +00:00
qrscanner
This commit is contained in:
parent
ba15b9eb6b
commit
7e74fcc935
1 changed files with 3 additions and 5 deletions
|
@ -1,13 +1,11 @@
|
||||||
from electrum.util import print_error
|
from electrum.util import print_error
|
||||||
|
from urlparse import urlparse, parse_qs
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import zbar
|
import zbar
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print_error("Install zbar package to enable QR scans")
|
|
||||||
zbar = None
|
zbar = None
|
||||||
|
|
||||||
from urlparse import urlparse, parse_qs
|
|
||||||
|
|
||||||
|
|
||||||
def init(wallet):
|
def init(wallet):
|
||||||
pass
|
pass
|
||||||
|
@ -19,7 +17,7 @@ def init_gui(gui):
|
||||||
gui.wallet.unset_hook('create_send_tab', create_send_tab)
|
gui.wallet.unset_hook('create_send_tab', create_send_tab)
|
||||||
|
|
||||||
def get_info():
|
def get_info():
|
||||||
return 'QR scans', "QR Scans"
|
return 'QR scans', "QR Scans.\nInstall the zbar package to enable this plugin"
|
||||||
|
|
||||||
def is_enabled():
|
def is_enabled():
|
||||||
return is_available()
|
return is_available()
|
||||||
|
|
Loading…
Add table
Reference in a new issue