load_wallet: we still want to test is_enabled
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user