load_wallet: we still want to test is_enabled
This commit is contained in:
parent
a7102bee78
commit
c2813c5b15
|
@ -43,7 +43,9 @@ def run_hook(name, *args):
|
|||
results = []
|
||||
f_list = hooks.get(name,[])
|
||||
for p, f in f_list:
|
||||
if name != 'load_wallet' and not p.is_enabled():
|
||||
if name == 'load_wallet':
|
||||
p.wallet = args[0]
|
||||
if not p.is_enabled():
|
||||
continue
|
||||
try:
|
||||
r = f(*args)
|
||||
|
|
Loading…
Reference in New Issue