15 lines
396 B
Python
15 lines
396 B
Python
|
|
from electrum.plugin import hook
|
||
|
|
from .safe_t import SafeTPlugin
|
||
|
|
from ..hw_wallet import CmdLineHandler
|
||
|
|
|
||
|
|
class Plugin(SafeTPlugin):
|
||
|
|
handler = CmdLineHandler()
|
||
|
|
@hook
|
||
|
|
def init_keystore(self, keystore):
|
||
|
|
if not isinstance(keystore, self.keystore_class):
|
||
|
|
return
|
||
|
|
keystore.handler = self.handler
|
||
|
|
|
||
|
|
def create_handler(self, window):
|
||
|
|
return self.handler
|