mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
load_wallet: we still want to test is_enabled
This commit is contained in:
parent
a7102bee78
commit
c2813c5b15
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ def run_hook(name, *args):
|
||||||
results = []
|
results = []
|
||||||
f_list = hooks.get(name,[])
|
f_list = hooks.get(name,[])
|
||||||
for p, f in f_list:
|
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
|
continue
|
||||||
try:
|
try:
|
||||||
r = f(*args)
|
r = f(*args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue