1
0

restrict plugins to the gui

This commit is contained in:
thomasv
2013-03-03 16:01:47 +01:00
parent 7e74fcc935
commit 190f733de2
5 changed files with 65 additions and 79 deletions

View File

@@ -7,14 +7,12 @@ except ImportError:
zbar = None
def init(wallet):
pass
def init_gui(gui):
def init(gui):
if is_enabled():
gui.wallet.set_hook('create_send_tab', create_send_tab)
gui.set_hook('create_send_tab', create_send_tab)
else:
gui.wallet.unset_hook('create_send_tab', create_send_tab)
gui.unset_hook('create_send_tab', create_send_tab)
def get_info():
return 'QR scans', "QR Scans.\nInstall the zbar package to enable this plugin"