save wallet label in keystore, to facilitate pairing
This commit is contained in:
@@ -134,10 +134,7 @@ class TrezorCompatiblePlugin(HW_PluginBase):
|
||||
# All client interaction should not be in the main GUI thread
|
||||
assert self.main_thread != threading.current_thread()
|
||||
devmgr = self.device_manager()
|
||||
derivation = keystore.get_derivation()
|
||||
xpub = keystore.xpub
|
||||
handler = keystore.handler
|
||||
client = devmgr.client_for_xpub(self, xpub, derivation, handler, force_pair)
|
||||
client = devmgr.client_for_keystore(self, keystore, force_pair)
|
||||
# returns the client for a given keystore. can use xpub
|
||||
if client:
|
||||
client.used()
|
||||
|
||||
@@ -219,7 +219,7 @@ def qt_plugin_class(base_plugin_class):
|
||||
forgotten their PIN or it is in bootloader mode.'''
|
||||
device_id = self.device_manager().xpub_id(keystore.xpub)
|
||||
if not device_id:
|
||||
info = self.device_manager().select_device(keystore.handler, self)
|
||||
info = self.device_manager().select_device(keystore.handler, self, keystore)
|
||||
device_id = info.device.id_
|
||||
return device_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user