electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 52a4810752c37312aeb7cb4739b5462dfdde2c58
parent 93578d9be22720780616e06805241aa6935b5def
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue, 14 Aug 2018 15:02:31 +0200

trezor: add "show address" option in addresses tab context menu for all trezors

in case of a multisig wallet, with multiple trezors, previously only one of the trezors could be used

Diffstat:
Melectrum/plugins/safe_t/qt.py | 6+++---
Melectrum/plugins/trezor/qt.py | 6+++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/electrum/plugins/safe_t/qt.py b/electrum/plugins/safe_t/qt.py @@ -76,10 +76,10 @@ class QtPlugin(QtPluginBase): return for keystore in wallet.get_keystores(): if type(keystore) == self.keystore_class: - def show_address(): + def show_address(keystore=keystore): keystore.thread.add(partial(self.show_address, wallet, addrs[0], keystore)) - menu.addAction(_("Show on {}").format(self.device), show_address) - break + device_name = "{} ({})".format(self.device, keystore.label) + menu.addAction(_("Show on {}").format(device_name), show_address) def show_settings_dialog(self, window, keystore): device_id = self.choose_device(window, keystore) diff --git a/electrum/plugins/trezor/qt.py b/electrum/plugins/trezor/qt.py @@ -171,10 +171,10 @@ class QtPlugin(QtPluginBase): return for keystore in wallet.get_keystores(): if type(keystore) == self.keystore_class: - def show_address(): + def show_address(keystore=keystore): keystore.thread.add(partial(self.show_address, wallet, addrs[0], keystore)) - menu.addAction(_("Show on {}").format(self.device), show_address) - break + device_name = "{} ({})".format(self.device, keystore.label) + menu.addAction(_("Show on {}").format(device_name), show_address) def show_settings_dialog(self, window, keystore): device_id = self.choose_device(window, keystore)