1
0

labels plugin: fix it. and extend to cli/daemon.

This commit is contained in:
SomberNight
2018-06-29 11:58:12 +02:00
parent 87486e9487
commit 684390a479
4 changed files with 17 additions and 3 deletions

View File

@@ -41,6 +41,7 @@ from .storage import WalletStorage
from .commands import known_commands, Commands
from .simple_config import SimpleConfig
from .exchange_rate import FxThread
from .plugins import run_hook
def get_lockfile(config):
@@ -175,6 +176,7 @@ class Daemon(DaemonThread):
wallet = self.load_wallet(path, config.get('password'))
if wallet is not None:
self.cmd_runner.wallet = wallet
run_hook('load_wallet', wallet, None)
response = wallet is not None
elif sub == 'close_wallet':
path = config.get_wallet_path()